Scan multiple surfaces
Cover Git history, environment files, staged changes, the worktree, CI logs, and Docker layers.
OPEN SOURCE SECRET DETECTION CLI
Scan Git history, environment files, CI logs, and Docker layers for credentials and tokens. This Go CLI prioritizes every finding so you can focus on what needs attention.
Go CLI / MIT License
WHY SECRETLENS
Choose the right scan scope for the job—from current changes and past commits to traces left in CI and containers.
Cover Git history, environment files, staged changes, the worktree, CI logs, and Docker layers.
Score findings using rules, entropy, and file context, then classify them from CRITICAL to LOW.
Integrate locally and in CI with exit codes, SARIF, PR comments, baselines, and custom rules.
SCAN SOURCES
Use it for everyday pre-commit checks, existing-project audits, or organization-wide reviews.
gitCommit historyenvfileEnvironment and config filesstagedStaged changesworktreeUncommitted changescilogGitHub Actions / GitLab CIdockerImage layersGET STARTED
Install the latest version in any environment with Go available.
go install github.com/nobuo-miura/SecretLens/cmd/secretlens@latestsecretlens scan .secretlens scan --staged --fail-on=HIGH .secretlens scan --all --format=sarif --out=results.sarif .SCAN LOCALLY · PRIORITIZE CLEARLY · INTEGRATE WITH CI