---
title: "Gitleaks: Stores Scanned, Detection and Scan Cost"
description: "Gitleaks record: free MIT secret scanner, 2 of 8 store kinds documented (git repos, directories), regex rules, no price, no PII detection, December 4, 2026."
url: https://sensitivedatadiscoverytools.com/tools/gitleaks/
canonical: https://sensitivedatadiscoverytools.com/tools/gitleaks/
reviewed: 2026-12-04
last_updated: 2026-12-04
---

# Gitleaks: free secret scanner for git repos and directories

Gitleaks is a free MIT-licensed command-line tool that detects secrets such as passwords, API keys and tokens, not personal data[[1]](https://api.github.com/repos/gitleaks/gitleaks) [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). Its README says it is feature complete, gets security patches only, and that the maintainer's focus has moved to a new project, Betterleaks[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). It scans git repositories, directories and piped input, which covers 2 of the 8 kinds of data store, with regex rules and no price[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) [[1]](https://api.github.com/repos/gitleaks/gitleaks).

Last reviewed December 4, 2026.

## At a glance

- The README states that Gitleaks is feature complete and that future releases will be security patches only; the latest release, v8.30.1, was published March 21, 2026, and the last commit on the default branch is dated October 23, 2026; the README says the maintainer's focus has moved to Betterleaks[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) [[3]](https://api.github.com/repos/gitleaks/gitleaks/releases/latest) [[4]](https://api.github.com/repos/gitleaks/gitleaks/commits?per_page=1).
- The repository had 31,549 GitHub stars on December 4, 2026 and is not archived[[1]](https://api.github.com/repos/gitleaks/gitleaks).
- The default configuration ships 222 detection rules[[5]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/config/gitleaks.toml).

## Where Gitleaks can look

Git mode runs git log -p over a local repository and scans the patches[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). Dir mode scans directories and files, and with no target given Gitleaks scans the current working directory[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). Stdin mode scans whatever is piped in, for example cat some_file | gitleaks -v stdin[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). The README names no object storage, database, warehouse or SaaS target[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md).

Table: Kinds of data store Gitleaks documents

| Kind of store | Named in the documentation | Source |
|---|---|---|
| Object storage | None found in the pages cited | [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) |
| Databases | None found in the pages cited | [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) |
| Warehouses | None found in the pages cited | [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) |
| SaaS apps | None found in the pages cited | [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) |
| File shares | None found in the pages cited | [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) |
| Endpoints | local directories and files | [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) |
| Code repos | local git repositories (git log -p) | [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) |
| Logs | None found in the pages cited | [[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md) |

## How it detects sensitive data

Each rule is a Go regular expression and can set a minimum Shannon entropy for the matched secret group[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). Users write their own rules in a TOML configuration that replaces or extends the default rules[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). The --max-decode-depth flag decodes percent, hex (32 characters or more) and base64 (16 characters or more) encoded text before matching and --max-archive-depth scans inside zip and tar archives; both default to 0, which turns them off[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). A gitleaks:allow comment on a line or a fingerprint listed in an ignore file (.gitleaksignore) suppresses a finding[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). The README publishes no accuracy figure, and Gitleaks has no personal-data detectors[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md).

## What a scan costs

Gitleaks is free under the MIT license and publishes no price[[1]](https://api.github.com/repos/gitleaks/gitleaks). It scans the git history, directory or stream it is given and runs locally, so compute is the user's own[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). The --log-opts flag passes git log options, for example --log-opts="--all commitA..commitB", so a scan can cover a commit range only[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). The README gives no throughput figure[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md).

## Finding data stores nobody listed

Gitleaks has no discovery mode: it scans only the repository, directory or piped input named on the command line[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md).

## Deployment and where the data goes

It runs locally as a release binary or through Homebrew, Docker or go install, and as a pre-commit hook or GitHub Action. The README describes no hosted service[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). Findings and the secrets they contain stay on the machine that runs the scan; the --redact flag masks all or part of each secret in logs and stdout[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). The pre-commit hook blocks a commit that contains a secret[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). GitLab's pipeline secret detection analyzer runs the gitleaks command; its troubleshooting section quotes the error "Couldn't run the gitleaks command"[[6]](https://docs.gitlab.com/user/application_security/secret_detection/pipeline/).

## Output: exports, APIs and integrations

Reports go out as json, csv, junit, sarif or a custom template, and each finding carries a fingerprint[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). A baseline file limits later scans to new findings[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md). The README names no catalog, ticketing, SIEM or data subject request integration[[2]](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md).

## Sources

1. [GitHub API repo](https://api.github.com/repos/gitleaks/gitleaks)
2. [README](https://raw.githubusercontent.com/gitleaks/gitleaks/master/README.md)
3. [Latest release](https://api.github.com/repos/gitleaks/gitleaks/releases/latest)
4. [Last commit](https://api.github.com/repos/gitleaks/gitleaks/commits?per_page=1)
5. [Default rules](https://raw.githubusercontent.com/gitleaks/gitleaks/master/config/gitleaks.toml)
6. [GitLab documentation: pipeline secret detection](https://docs.gitlab.com/user/application_security/secret_detection/pipeline/)
