Turn on GitHub secret scanning so a pasted key gets caught
AI builders sometimes paste a real key straight into a file. Once it is pushed to GitHub, anyone who can see the repo can copy it.
The check: in your repo, open Settings, then Code security, and look at Secret scanning and Push protection.
The fix: switch both on. Push protection stops a push that contains a known key format. If a key was already pushed, rotate it, because removing it from the code does not undo the leak.
Want an outside check for leaked keys? Run the free scan at leakyvibe.com/?demo=1&ref=blog-turn-on-github-secret-scanning-and-push-protection. It takes about 15 seconds.