What’s a secret, and what do you do when one leaks?
A secret is any credential that proves it’s you, such as an API key, a password or a token.
GitHub’s docs say that when secret scanning finds one exposed, the advice is to rotate the affected credential right away, because scrubbing it from Git history is time-intensive and often unnecessary once the credential is revoked (GitHub Docs: About secret scanning).
Try this: if you have ever pasted a key into a command, a chat or a config file, read our Claude Code Daily to see one place it can end up. New here? Start here.