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.

A public repository on github.com. Private repositories can't be checked yet.

We check the newest commits on the main branch (about 50 at a time while in beta). Results show only the key type and where it is, never the key itself. We don't keep your results.

If a key turns up

  1. Change the key first. Deleting it from the code is not enough: copies of the history already exist.
  2. Keep keys out of the code. Put them in environment variables or your host's secret settings.
  3. Then clean the history if you want, with GitHub's guide to removing sensitive data.