Command-line tool
gitleaks
brew/gitleaks
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Audit git repos for secrets go security hacktoberfest git golang security-tools devsecops gitleaks secret
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id Gitleaks.Gitleaks -e scoop install gitleaks
macOS
brew install gitleaks
Linux
brew install gitleaks
Scan a remote repository
gitleaks detect --repo-url https://github.com/username/repository.git
Scan a local directory
gitleaks detect -s path/to/repository
Output scan results to a JSON file
gitleaks detect -s path/to/repository --report path/to/report.json
Related command-line tools
- betterleaks
Secrets scanner built for configurability and speed developer-tools go git golang secrets devops github llm-tools… - @infisical/cli
<h1 align="center">Infisical CLI</h1> <p align="center"> <p align="center"><b>Embrace shift-left security with the… - trivy
Vulnerability scanner for container images, file systems, and Git repos docker security cli golang containers… - lefthook
Fast and powerful Git hooks manager for any type of projects go hacktoberfest git golang manager hooks lefthook - git-secrets
Prevents you from committing sensitive information to a git repo - grype
Vulnerability scanner for container images and filesystems docker go security tool hacktoberfest golang oci containers… - caddy
Powerful, enterprise-ready, open source web server with automatic HTTPS go security privacy hacktoberfest… - talisman
Tool to detect and prevent secrets from getting checked in cli portable git golang secrets devops-tools secret…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents