Option to opt out of secret scanning for a private Gist? #196971
-
🏷️ Discussion TypeProduct Feedback 💬 Feature/Topic AreaSecret scanning Discussion DetailsI would like to note down some access tokens in a private Gist. But doing that causes said tokens to be automatically revoked. I would like an opt-in option that allows me to disable secret scanning on a Gist, much like how it's possible to exclude files from security scanning in a repository. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
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:
If GitHub ever offered an opt-out here, it would be dangerous because many users treat “secret gist” as private storage when it is really URL-obscured sharing. For token storage, I would consider the current behavior the safer default. Docs:
|
Beta Was this translation helpful? Give feedback.
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: