Gitleaks
Install latest/stable of Gitleaks
Ubuntu 16.04 or later?
Make sure snap support is enabled in your Desktop store.
Details for Gitleaks
Package name
- gitleaks
License
- MIT
Last updated
- 12 November 2026 - latest/stable
- Today - latest/beta
Websites
Contact
Source code
Report a bug
External link warning
You are about to open
Do you wish to proceed?
Report a Snap Store violation
Report Gitleaks for a Snap Store violation
Snap Store Violation Report submitted successfully
Thank you for your report. Information you provided will help us investigate further.
Error submitting report
There was an error while sending your report. Please try again later.
Share this snap
Generate an embeddable card to be shared on external websites.
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.
| Revision | Channel | Version | Build | Commit | Download SBOM |
|---|
The build and commit information is derived from build infrastructure records.
Install Gitleaks on your Linux distribution
Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.