language

Gitleaks

Open SourceCLISecurityCI

Fast secret scanning for Git repos, files, CI pipelines, and pre-commit hooks

About Gitleaks

Gitleaks is a command-line tool that scans source code and Git history for secrets such as API keys, tokens, and credentials. It can run locally, in pre-commit hooks, or inside CI pipelines.

It is a practical security layer for teams that want to catch leaks before they reach production or public repositories. The tool is lightweight, fast, and easy to add to existing developer workflows.

Key Features

shield

Secret Detection

Find exposed keys, tokens, and credentials in files and Git history.

terminal

CLI Workflow

Scan repositories from local terminals, scripts, and CI jobs.

verified_user

Pre-Commit Support

Block accidental secret commits before they leave a developer machine.

dataset

Configurable Rules

Tune detection patterns, allowlists, and reporting for your codebase.

Specifications

Language
Go
License
MIT
Interface
CLI
Integrations
GitHub Actions, GitLab CI, pre-commit