Rankings/Gitleaks

Gitleaks

gitleaks/gitleaks

Gitleaks is a tool that scans your code repositories for accidentally exposed passwords, API keys, and other sensitive info to prevent account theft.

Find secrets with Gitleaks šŸ”‘

Stars
26,021
Forks
1,993
Watchers
169
Issues
358
šŸ’”

Gitleaks is a tool that scans your code repositories for accidentally exposed passwords, API keys, and other sensitive info to prevent account theft.

šŸ“‚ Security & PrivacyšŸ’» GošŸ“„ MIT

AI Summary

šŸ”

What This Project Does

Gitleaks acts like a 'security scanner' for your code, specifically looking for accidentally committed passwords, API keys, access tokens, and other sensitive data in Git repos or files.

šŸ”§

What Problems It Solves

During development, it's easy to accidentally commit test keys or production passwords to the codebase. If these become public, they can lead to stolen accounts or abused services. It helps you find these vulnerabilities early, avoiding the hassle of cleanup later.

šŸ‘„

Who It's For

  • •Individual Developers: Wanting to protect private project security.
  • •Ops/Security Teams: Needing to automate code compliance checks.
  • •CI/CD Users: Wanting to automatically block leaks before code merges.
šŸ“‹

Typical Use Cases

1. Run a quick check via local command line before committing code.

2. Integrate into GitHub Actions to automatically scan every Pull Request.

3. Scan older repositories to investigate if sensitive data was left in historical commits.

⭐

Key Strengths & Highlights

  • •Supports multiple installation methods (Docker, Homebrew, binaries), ready to use out of the box.
  • •Can be configured as a pre-commit hook to block leaks at the source.
  • •Rich rule library capable of identifying common cloud service keys and database passwords.
šŸš€

Getting Started Requirements

  • •No programming experience needed, basic command line knowledge is enough.
  • •No complex deployment required, download and run.
  • •No API Key needed, completely free and open source.
šŸŽÆ

Purpose

Suitable for all developers and teams needing code security management, effectively preventing sensitive info leaks. Not suitable for pure doc projects without codebases or handling non-sensitive text.

Tech Stack

—

Project Info

Primary Language
Go
Default Branch
master
License
MIT
Created
Jan 27, 2018
Last Commit
24 days ago
Last Push
24 days ago
Indexed
Apr 18, 2026