1.10.1211.5 MB
MIT
strict
core26
Find leaked secrets in Git, files, code hosts and S3 buckets
Betterleaks detects passwords, API keys, tokens and other secrets in the
history of Git repositories, in directories and files, in text read from
standard input, and in GitHub, GitLab, Hugging Face and S3 sources. It can
check findings against live APIs, reads Gitleaks configuration files, and
writes reports as JSON, CSV, JUnit, SARIF or a custom template.
Examples
File access
Betterleaks can scan repositories and files in your home directory. To
also scan USB drives and other removable media (/media, /mnt), run:
The snap includes Git for scanning history and cloning over HTTPS.
history of Git repositories, in directories and files, in text read from
standard input, and in GitHub, GitLab, Hugging Face and S3 sources. It can
check findings against live APIs, reads Gitleaks configuration files, and
writes reports as JSON, CSV, JUnit, SARIF or a custom template.
Examples
betterleaks git -v ~/projects/my-project
betterleaks dir -v ~/projects/my-project
cat notes.txt | betterleaks stdin
betterleaks github https://github.com/my-org --validationFile access
Betterleaks can scan repositories and files in your home directory. To
also scan USB drives and other removable media (/media, /mnt), run:
sudo snap connect betterleaks:removable-mediaThe snap includes Git for scanning history and cloning over HTTPS.
Update History
1.10.1 (2)13 Nov 2026, 03:45 UTC
13 Nov 2026, 03:31 UTC
13 Nov 2026, 03:41 UTC
13 Nov 2026, 03:45 UTC