8.30.137.4 MB
MIT
strict
core26
Find secrets in Git repositories, files and standard input
Gitleaks detects passwords, API keys, tokens and other secrets in the
history of Git repositories, in directories and files, and in text read
from standard input. It prints findings or writes them as JSON, CSV,
JUnit, SARIF or a custom template, and its rules can be extended with a
TOML file.
Examples
File access
Gitleaks 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 and has no network access.
history of Git repositories, in directories and files, and in text read
from standard input. It prints findings or writes them as JSON, CSV,
JUnit, SARIF or a custom template, and its rules can be extended with a
TOML file.
Examples
gitleaks git -v ~/projects/my-project
gitleaks dir -v ~/projects/my-project
cat notes.txt | gitleaks stdin
gitleaks git --pre-commit --staged --redact -vFile access
Gitleaks can scan repositories and files in your home directory. To
also scan USB drives and other removable media (/media, /mnt), run:
sudo snap connect gitleaks:removable-mediaThe snap includes Git and has no network access.
Update History
8.30.1 (3)12 Nov 2026, 02:00 UTC
12 Nov 2026, 01:18 UTC
12 Nov 2026, 01:19 UTC
12 Nov 2026, 02:00 UTC