Guide · updated Nov 30, 2026
Leaked an API key? The first hour, in order.
Bots scan public GitHub pushes within minutes, so assume the key was seen and revoke it before anything else.
highlights · fix ready
Move @xmldom/xmldom to 0.8.15.
- "@xmldom/xmldom": "0.7.13"
+ "@xmldom/xmldom": "0.8.15"
- Verify passedinstall, build, 212 tests · 41 s
- Rescan cleanall 15 advisories gone
- Blast radiusbuild tools only, nothing in the app
Step by step
Revoke it now
Delete or roll the key at the provider (AWS IAM, Stripe, OpenRouter, Cloudflare). Don't wait until the history is clean.
Read the provider's logs
Look for use since the push: CloudTrail for AWS, the request log for Stripe, activity for OpenRouter, the audit log for Cloudflare.
Find every copy
The same key often sits in other repos, CI secrets and .env files.
gh secret list --repo acme/web gitleaks git -v .Put the new key everywhere
Update your secret store, CI secrets and Worker or Lambda settings, then redeploy each service that used it.
Clean the history
Rewrite the commits that hold the old key (our guide below) so new clones don't carry it.
Stop the next one
Turn on GitHub secret scanning push protection and a pre-commit hook, and give each service its own key.
Or let IonCipher do it.
IonCipher finds the key, tells you if it's still live, lists every repo and secret that holds it, and opens a fix pack with the rotation steps.
More guides
How to remove a secret from git history
Rotate the key first, then rewrite every commit that holds it with git filter-repo, force-push and ask GitHub to drop cached views..
Pin GitHub Actions to a commit SHA
Tags on GitHub Actions can be moved, as tj-actions (2025) and the Trivy Action (2026) showed.
GitHub Actions security checklist
Twelve checks for GitHub Actions: SHA pins, read-only tokens, pull_request_target, script injection, secrets, runners, OIDC and alerts on change..
A Dependabot alternative that batches PRs
Dependabot can group updates; here's the config.
Your first fix, on your phone tonight.
Connect GitHub; the first scan of every repo finishes in minutes.