Skip to content
Discussion options

You must be logged in to vote

I would strongly avoid using a Gist as a token notebook, even if the Gist is “secret”.

The important detail is that secret gists are unlisted, not truly private. GitHub's secret scanning docs explicitly note that secret gists can be accessed by anyone with the URL, and GitHub has also announced that secrets found in unlisted gists are reported to secret scanning partners.

So the auto-revocation is doing what it is meant to do: treating the token as exposed.

Safer alternatives:

  • Use a password manager for human-held tokens.
  • Use GitHub Actions secrets / organization secrets for CI tokens.
  • Use a cloud secret manager if the token is used by infrastructure.
  • If you only need notes, store the se…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cyqsimon
Comment options

Answer selected by cyqsimon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Security Build security into your GitHub workflow with features to keep your codebase secure source:ui Discussions created via Community GitHub templates
2 participants