Version8.30.1
Revision3
Size7.4 MB
LicenseMIT
Confinementstrict
Basecore26
CategoriesDevelopment

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

gitleaks git -v ~/projects/my-project
gitleaks dir -v ~/projects/my-project
cat notes.txt | gitleaks stdin
gitleaks git --pre-commit --staged --redact -v


File 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-media


The snap includes Git and has no network access.

Update History

8.30.1 (3)
12 Nov 2026, 02:00 UTC

Published12 Nov 2026, 01:18 UTC

Last updated12 Nov 2026, 01:19 UTC

First seen12 Nov 2026, 02:00 UTC