gitleaks logo

gitleaks

gitleaks/gitleaks

Find secrets with Gitleaks 🔑

GraphCanon updated 2d · GitHub synced 2d

29k stars2.2k forksLast push 3w Go MIT

Decision brief

gitleaks is an AI-driven tool for detecting secrets within git repositories that can integrate into CI/CD pipelines and offers robust CLI capabilities.

Good fit when

  • - When you need to detect leaked secrets using advanced AI-powered methods, offering a modern approach over traditional pattern matching.
  • - If your development environment heavily relies on Go (Golang) as gitleaks allows for seamless integrations within those ecosystems.

Avoid when

  • - Avoid if looking for broader DLP functionalities that extend beyond git repositories, as gitleaks is specifically tailored to this context.
  • - Not recommended if you require real-time alerting features; gitleaks is more suited for periodic or commit-based scanning and analysis.
Requirements:
Min 1 GB RAM; Requires a Go environment to be installed if not using pre-built binaries.

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Active (18d since push)
As of 2d
Provenance
Not a fork · Organization account
As of 2d
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

go get github.com/gitleaks/gitleaks
pkg.go.dev

How it fits your stack(5)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Gitleaks is a tool to detect leaked secrets within commits and pull requests in git repositories using AI-powered detection methods.

Capability facts

Deploy
Self-host

Source: dockerfile:Dockerfile · Aug 16, 2026

Docker
Dockerfile present

Source: dockerfile:Dockerfile · Aug 16, 2026

Languages
go

Source: github.language · Aug 16, 2026

Categories

Tags

README

Getting Started

Gitleaks can be installed using Homebrew, Docker, or Go. Gitleaks is also available in binary form for many popular platforms and OS types on the releases page. In addition, Gitleaks can be implemented as a pre-commit hook directly in your repo or as a GitHub action using Gitleaks-Action.


Docker (DockerHub)

docker pull zricethezav/gitleaks:latest docker run -v ${path_to_host_folder_to_scan}:/path zricethezav/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH]


Docker (ghcr.io)

docker pull ghcr.io/gitleaks/gitleaks:latest docker run -v ${path_to_host_folder_to_scan}:/path ghcr.io/gitleaks/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH]

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.