# Gitleaks

> Find secrets with Gitleaks

Source: https://talira.ai/catalog/gitleaks-b0pf99yg
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [security / secret scanning](https://talira.ai/categories/security/secret-scanning)
- Platforms: macos, linux, windows, docker, cli
- Licence: MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: Zachary Rice

Gitleaks detects secrets such as passwords, API keys and tokens in git history, directories, files and stdin, using configurable detection rules. It runs locally, as a [pre-commit](https://talira.ai/catalog/pre-commit-ymy35rpp.md) hook and in CI through its GitHub Action. Its maintainer has declared it feature complete: future releases are security patches only, and new work has moved to Betterleaks.

## Links

- Website: https://gitleaks.io
- GitHub: https://github.com/gitleaks/gitleaks

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/gitleaks>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/gitleaks>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/gitleaks>[^3]

## Problems it solves

- did someone commit an API key to our repo at some point in its history
- block commits that contain passwords or tokens
- scan every pull request for leaked secrets in CI
- free secret scanning for private repos without paying per committer
- audit a repo before we make it public

## Features

- git history, directory, file and stdin scanning
- configurable detection rules
- GitHub Action

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.61 out of 1.
Signals: maintenance 0.61, adoption 0.90, momentum 0.75, community 0.95, backing 0.20, extensibility 0.20.

- last commit 27 days ago
- 2 commits in the last 90 days
- latest release v8.30.1 8 months ago
- 31.1k GitHub stars
- 234 contributors
- accepts sponsorship (Github)
- created by Zachary Rice

## Alternatives

- [GitHub Secret Protection](https://talira.ai/catalog/github-secret-protection-wya2z0sz.md): Secret scanning and push protection for private repositories, per active committer
- [TruffleHog](https://talira.ai/catalog/trufflehog-0249f3m2.md): Find, verify, and analyze leaked credentials
- [GitGuardian](https://talira.ai/catalog/gitguardian-d4py8bka.md): Detect and validate hardcoded secrets across your SDLC
- [Kingfisher](https://talira.ai/catalog/kingfisher-84p0ekrp.md): Detect secrets. Validate them live. Map blast radius. Revoke fast.
- [Trivy](https://talira.ai/catalog/trivy-bwebatvr.md): Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
- [detect-secrets](https://talira.ai/catalog/detect-secrets-eb4tk1py.md): An enterprise friendly way of detecting and preventing secrets in code.

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
