Gitleaks
Gitleaks scans Git repositories for accidentally committed secrets and tokens, helping developers catch leaked credentials before they spread. Find secrets with Gitleaks 🔑
Pricing
Open source (free)
Update history
Last updated 2026-10-28;Listed 2026-09-24
Author
gitleaks
Trust info
Listed on 2026-09-24; Last updated 2026-10-28; Data synced on 2026-11-21
Trial feedback
Like it? Vote to help it rank higher.
Deploy command
# MacOS
brew install gitleaks
# Docker (DockerHub)
docker pull zricethezav/gitleaks:latest
docker run -v ${path_to_host_folder_to_scan}:/path zricethezav/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH]
# Docker (ghcr.io)
docker pull ghcr.io/gitleaks/gitleaks:latest
docker run -v ${path_to_host_folder_to_scan}:/path ghcr.io/gitleaks/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH]
# From Source (make sure `go` is installed)
git clone https://github.com/gitleaks/gitleaks.git
cd gitleaks
make buildTaken from the project README. You need a server with Docker; you may still need to add environment variables.
From the README
Gitleaks is a tool for detecting secrets like passwords, API keys, and tokens in git repos, files, and whatever else you wanna throw at it via stdin. If you wanna learn more about how the detection engine works check out this blog: Regex is (almost) all you need.
- Stars
- ★ 31.2k
- Category rank
- #53
- Language
- Go
- License
- MIT
- Last updated
- 2026-10-28
- Category
- Infrastructure & security
- Section
- General











