qmetrics.net
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

Side by side

GitleaksTrivy
GitHub stars★ 31,541 +202 in 9 days★ 40,022 +286 in 9 days
Forks2,439992
Last commit1 month agoyesterday
Latest versionv8.30.1v0.77.0
Repository startedJanuary 2018April 2019
LicenseMIT · permissiveApache-2.0 · permissive
Self-hostedDesktop/CLI appDesktop/CLI app
PlatformsmacOS, Docker, CLImacOS, Docker
Main languageGoGo
Alternative toGitHub Advanced SecurityGitHub 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

More comparisons

Report a mistake on this page