
Gitleaks
Gitleaks is free, MIT-licensed software for detecting passwords, API keys, tokens, and other secrets in Git repositories, files, and data streamed through st…
What Gitleaks is
Gitleaks is free, MIT-licensed software for detecting passwords, API keys, tokens, and other secrets in Git repositories, files, and data streamed through stdin. It can scan repositories, directories, individual files, or standard input, and runs on Linux, macOS, Windows, or self-hosted systems. Custom detection rules can use Go regular expressions, entropy checks, path matching, keywords, and allowlists. A prior report can be used as a baseline so subsequent scans report only new findings. Output formats include JSON, CSV, JUnit, SARIF, and templates. The project documents use as a pre-commit hook and a GitHub Action, along with CI/CD and pull-request scanning. Installation options include Homebrew, Docker, Go, and prebuilt release binaries. A redaction option can mask secrets in logs and standard output, with a default redaction value of 100%. The project describes the software as feature complete, with future releases limited to security patches; its security policy supports only the latest version. Vulnerabilities should be reported privately through GitHub rather than as public issues.
Good
- Scans repositories, files, and stdin
- Customizable detection rules and allowlists
- Multiple report formats, including SARIF
- Documents pre-commit and GitHub Action use
- Free under the MIT License
Watch out
- Future releases are limited to security patches
- Only the latest version is supported
Who it suits
Gitleaks suits teams and developers who want to scan Git repositories and files for exposed secrets, including within pre-commit or CI/CD workflows. It supports custom rules and several report formats.
Verdict
Gitleaks provides flexible secret scanning across repositories and development workflows, with configurable rules and report formats. Its maintenance scope is limited to security patches, and support applies to the latest version.
Plans and prices
From Gitleaks's own pricing page, checked 2 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Gitleaks | Free | MIT-licensed software · latest version supported |
The facts
Each one read from Gitleaks's own pages, with the date it was checked.
What it does
- Baselines
- A report can be used as a baseline so subsequent scans report only new findings.checked 2 Oct 2026
- Detection rules
- Users can configure custom detection rules using Go regular expressions, entropy checks, path matching, keywords, and allowlists.checked 2 Oct 2026
- Installation
- The project documents installation through Homebrew, Docker, Go, and prebuilt release binaries.checked 2 Oct 2026
- Integrations
- The project documents use as a pre-commit hook and as a GitHub Action.checked 2 Oct 2026
- License
- The repository is distributed under the MIT License, which permits use, copying, modification, distribution, sublicensing, and sale subject to its terms.checked 2 Oct 2026
- Maintenance status
- The project says it is feature complete and future releases will be security patches only.checked 2 Oct 2026
- Purpose
- Gitleaks detects secrets such as passwords, API keys, and tokens in Git repositories, files, and stdin.checked 2 Oct 2026
- Reports
- Gitleaks can output reports in JSON, CSV, JUnit, SARIF, or template format.checked 2 Oct 2026
- Scan modes
- Gitleaks supports scanning Git repositories, directories or files, and data streamed through stdin.checked 2 Oct 2026
- Secret handling
- The CLI has a redaction option that can redact secrets in logs and standard output, with a default redaction value of 100%.checked 2 Oct 2026
- Security reporting
- The security policy asks users to report vulnerabilities privately through GitHub rather than opening a public issue.checked 2 Oct 2026
- Support scope
- The security policy says only the latest version is supported.checked 2 Oct 2026
Where it runs
- Platforms
- The releases page lists binaries for macOS, Linux, and Windows architectures.checked 2 Oct 2026
Alternatives to Gitleaks
- 1

DeepSource
Free planWebAPILinuxmacOS8.0From $30 a month - 2

Endor Labs
Free planWebAPIExtensionLinux7.4Free plan - 3

Vooda AI
Free planWebAPILinuxmacOS6.9Free plan - 4

Arnica Secrets Security
Free planWebAPISelf-hosted6.6From $300 a year - 5

GitGuardian
Free planWebAPILinuxmacOS6.6Free plan - 6
detect-secrets
Free planLinuxmacOSSelf-hostedWindows6.5Free plan
