
Gitleaks
Gitleaks is a command-line scanner that finds hardcoded passwords, API keys and tokens in git repositories, files and piped input.
- GitHub stars
- 31k
- Last commit
- 16 days ago
- Latest release
- v8.30.1
- Licence
- MIT

Gitleaks is a tool for detecting secrets such as passwords, API keys and tokens in git repositories, in files, and in anything you pipe to it through standard input. It is written in Go, released under the MIT license, and aimed at DevSecOps, CI/CD and data-loss-prevention use. A maintainer warning in the README says it is feature complete, that future releases will be security patches only, and that the author is shifting focus to a successor project called Betterleaks.
Gitleaks can be installed with Homebrew, Docker or Go, and binaries for many platforms are on the releases page. It can run as a pre-commit hook and has a GitHub Action for CI use. The detection engine is built on regular expressions, and the author has written about how that approach works. It does not need a hosted service, because scans run wherever you execute the binary, including in CI pipelines.
Key features
- Scans git history, files and stdin
- Detects passwords, API keys and tokens
- Runs as a pre-commit hook
- GitHub Action for CI scanning
- Install via Homebrew, Docker or Go
- Maintenance now limited to security patches
Pricing: Free and open source under the MIT license.



























