Install latest/stable of Gitleaks

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.


Install using the command line

sudo snap install gitleaks

Don't have snapd? Get set up for snaps.

Channel Version Published

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


Report a Snap Store violation

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 Published 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.


Where people are using Gitleaks