CheckOps home

Tools directory

G

CheckOps

Gitleaks

Gitleaks is an MIT-licensed tool for detecting secrets such as passwords, API keys and tokens in Git repositories, files and stdin; it is now feature complete with security-patch-only releases.

Visit website

Latest public signals

Last updated: 11 November 2026 (page expanded from the official README or site).

Visit Website

Introduction

Gitleaks detects secrets like passwords, API keys and tokens in Git repositories, files and anything piped to it. It is one of the most popular secret scanners, with about 30,900 GitHub stars.

Important: the README now says Gitleaks is feature complete, no new features will be merged, future releases will be security patches only, and the author is shifting focus to a new project called Betterleaks.

The source code is at gitleaks/gitleaks on GitHub under the MIT licence, with about 30,900 stars; the most recent commit was on 28 October 2026.

Gitleaks scans Git history, directories and standard input using regular-expression and entropy-based rules defined in TOML, with allowlists to suppress known false positives and baselines to ignore existing findings. It can run as a pre-commit hook, in CI through the official GitHub Action, or as a one-off audit of a repository’s full history, and reports in JSON, CSV, JUnit and SARIF so findings can feed code scanning dashboards.

Where it fits: on CheckOps, Gitleaks is listed alongside alternatives such as TruffleHog, detect-secrets, Kingfisher and Talisman. When comparing them, check licence and hosting model, how results reach developers (pull requests, CI logs or dashboards), how much tuning is needed to keep noise low, and whether the project or vendor is actively maintained.

Features

  1. Git history scanning: Scan commits and history.
  2. Directory and stdin: Scan files or piped input.
  3. Configurable rules: TOML config with custom rules and allowlists.
  4. Pre-commit hook: Stop secrets before commit.
  5. Report formats: JSON, CSV, SARIF and more.

Pros

  1. Free to use: Open source under MIT.
  2. Maintained: Commits as recent as 28 October 2026.
  3. Community: About 30,900 GitHub stars.

Cons

  1. Feature frozen: Only security patches going forward.
  2. No live verification: Does not check if secrets are active.
gitleaks git -v .
gitleaks dir ./src

Resources:

Getting started tips: run Gitleaks once against the full Git history to find secrets that are already committed, rotate anything real (deleting a commit does not revoke a credential), then add it as a pre-commit hook and a CI check so new leaks are blocked. Keep an allowlist or baseline for test fixtures, and review it regularly so it does not hide real secrets.

Pricing

Gitleaks is free and open source under the MIT licence.

  1. Teams wanting a simple, free secrets gate in CI or pre-commit.
  2. Existing Gitleaks users (note the maintenance status).
  3. Not a fit if you need live secret validation.

Conclusion

Gitleaks remains a solid, simple secret scanner, but plan for its security-patch-only status.

As with any tool in this category, the value of Gitleaks comes from running it consistently and acting on what it finds, so wire it into an existing workflow rather than treating it as an occasional audit.

Alternatives

Other tools on CheckOps that cover similar ground. Open a page, or compare one with Gitleaks side by side.