GitleaksCommand-line secret scanner for git repos and files
TrivyAll-in-one scanner for vulnerabilities, IaC, SBOM, and secrets
Gitleaks vs Trivy
How Gitleaks and Trivy compare on popularity, activity, license and platforms: two open-source Application Security projects, both alternatives to GitHub Advanced Security.
At a glance
- Trivy has more GitHub stars (40k vs 31.5k).
- Trivy was updated more recently (last commit yesterday, Gitleaks 1 month ago).
- Gitleaks uses MIT; Trivy uses Apache-2.0 (both permissive).
- Gitleaks is the older project (repository started 2018; Trivy in 2019).
Side by side
| Gitleaks | Trivy | |
|---|---|---|
| GitHub stars | ★ 31,541 +202 in 9 days | ★ 40,022 +286 in 9 days |
| Forks | 2,439 | 992 |
| Last commit | 1 month ago | yesterday |
| Latest version | v8.30.1 | v0.77.0 |
| Repository started | January 2018 | April 2019 |
| License | MIT · permissive | Apache-2.0 · permissive |
| Self-hosted | Desktop/CLI app | Desktop/CLI app |
| Platforms | macOS, Docker, CLI | macOS, Docker |
| Main language | Go | Go |
| Alternative to | GitHub Advanced Security | GitHub Advanced Security, Veracode |
Highlighted: more stars or forks, or a last commit at least two weeks more recent. Data from GitHub, updated 4 December 2026.
Gitleaks
Gitleaks finds passwords, API keys, and tokens in git history, directories, files, or stdin. It uses configurable regex rules and fits into local workflows and CI.
Key features
- Git, directory, and stdin scan modes
- Customizable TOML secret detection rules
- JSON, CSV, JUnit, and SARIF reporting
- Baseline reports for legacy noise
- Encoded text and nested archive scanning
- Composite multi-rule proximity matching
Trivy
Trivy scans containers, filesystems, Git repos, VMs, Kubernetes, and related targets for CVEs, misconfigurations, secrets, licenses, and software bills of materials.
Key features
- Container image scanning
- Filesystem and Git repo scans
- Kubernetes cluster checks
- CVE and SBOM detection
- IaC misconfiguration rules
- Secret and license scanning