KingDownloads

gitleaks

by gitleaks 28.1k stars MITDeveloper Tools
Download

About gitleaks

Gitleaks is a tool designed to detect sensitive information such as passwords, API keys, and tokens in git repositories, files, and input streams. It analyzes content using pattern matching to identify potential secrets that may have been accidentally committed or stored. The tool is commonly used in development workflows to prevent sensitive data leaks.

Gitleaks supports multiple installation methods including Homebrew, Docker, and direct compilation from source. It can be integrated into CI/CD pipelines, used as a pre-commit hook, or run manually against repositories and directories. The project is currently in maintenance mode with only security updates being released as development shifts to Betterleaks.

Key features

  • Detects secrets in git repositories using git log analysis
  • Scans directories and files for sensitive information
  • Processes input streams for secret detection
  • Supports custom configuration files for detection rules
  • Generates reports in multiple formats (JSON, CSV, JUnit, SARIF)
  • Integrates with pre-commit hooks
  • Provides Docker container for easy deployment
  • Allows creation of baselines to ignore known issues

Download v8.30.1

Mar 21, 2026
View all 10 versions

Frequently asked questions

Is gitleaks free?
Yes. gitleaks is free and open-source software, distributed under the MIT license.
Which platforms does gitleaks support?
gitleaks provides downloads for Windows, macOS, Linux.
What is the latest version of gitleaks?
The latest version is v8.30.1, released on Mar 21, 2026.
What platforms does Gitleaks support?
Gitleaks is available for multiple platforms through binary releases, can be installed via Homebrew on macOS, runs in Docker containers, and can be compiled from source using Go.
How do I install Gitleaks?
Gitleaks can be installed using Homebrew (brew install gitleaks), Docker (docker pull zricethezav/gitleaks), or compiled from source. Binary releases are also available for various platforms.
What license does Gitleaks use?
Gitleaks is open source software, though the specific license is not mentioned in the provided README content.
Is Gitleaks still actively developed?
The maintainer has stated that Gitleaks is feature complete and will only receive security patches going forward, with development focus shifting to Betterleaks.

More Developer Tools