Scan a public GitHub repo for leaked secrets
Enter a public repository and we scan its default branch, and optionally its last 30 commits, for committed API keys, tokens, private keys and database passwords. Each finding shows the file, line and a redacted preview, plus how to rotate the key.
Public repositories only. Results show redacted previews, are cached for 10 minutes, and are never stored.
How it works
We read the repository’s file list from the GitHub API, download up to 300 text files (10 MB) from the default branch, and run the same detection rules as the keysquid scan CLI. With commits on, we also read the diffs of the last 30 commits and scan only the added lines, which catches keys that were committed and later deleted.
What we check
- Provider keys: OpenAI, Anthropic, Stripe, AWS (access key IDs and secrets), GitHub, GitLab, Slack, Twilio, SendGrid, Resend, Mailgun, Supabase, Cloudflare, Datadog, npm, PyPI and Hugging Face.
- Private keys, JSON Web Tokens and database URLs with passwords.
- Generic
secret = "…"assignments, only when the value looks random (these are marked for review).
Lines marked gitleaks:allow or keysquid:ignore are skipped.
FAQ
Can it scan private repositories?
No. It checks that the repository is public before reading anything and refuses private ones. For private code, run the open-source keysquid scan CLI or gitleaks on your own machine or in CI.
I deleted the key from my repo. Why does it still show up?
Git keeps every version. A key removed in a later commit is still in the history, in forks, and in clones, and bots scrape public commits within minutes. Rotate the key; rewriting history alone doesn't make it safe.
How much of the repository is scanned?
Up to 300 text files and 10 MB from the default branch, with likely secret locations (.env files, configs, CI workflows) first. Binaries, lockfiles and node_modules are skipped. With the commit option on, the added lines of the last 30 commits are scanned as well.
Are the results stored?
No. Results are kept in memory for 10 minutes so repeat scans don't use up GitHub's rate limit, and they only ever contain redacted previews.