Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Scans the codebase and optionally git history for exposed secrets like AWS keys, private keys, connection strings, and JWTs.
Use this skill ↓46% 58%+13 ptsof test cases passed
Passed 14 of 24 test cases with the skill, and 11 of 24 without it.
A developer removed an API key in the latest commit, but we want to scan past git commits to ensure it wasn't committed earlier. What specific option flag should be passed to the secret scanning tool?
Specifies the `--git-history` flag.
3 of 3 safety checks passed
Detect exposed credentials, API keys, and sensitive data in the codebase.
/secret-scan [path] [--git-history] [--fix]
Scans the codebase (and optionally git history) for exposed secrets: AWS credentials, API keys, private keys, database connection strings, JWT tokens, and other sensitive data. Reports findings with exact file locations and remediation steps.
AKIA[0-9A-Z]{16}[a-zA-Z0-9]{32,} in assignment context-----BEGIN (RSA|EC|DSA) PRIVATE KEY-----postgres://, mongodb://, redis:// with credentialseyJ[A-Za-z0-9-_]+\.eyJ[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+--git-history) -- check previous commits for secrets that were later removed.--fix) -- add entries to .gitignore, suggest secret rotation.# Scan current codebase
/secret-scan
# Include git history
/secret-scan --git-history
# Scan and auto-fix .gitignore
/secret-scan --fix
# Scan specific directory
/secret-scan config/
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.