Check a GitHub repository for leaked keys
A key deleted in a later commit is still in the history, and bots read public GitHub all day. We read the commits of a public repository and look for keys and passwords that were ever pushed, then tell you which are still in the code.
If a key turns up
- Change the key first. Deleting it from the code is not enough: copies of the history already exist.
- Keep keys out of the code. Put them in environment variables or your host's secret settings.
- Then clean the history if you want, with GitHub's guide to removing sensitive data.