What is Gitleaks?
Gitleaks is an open-source static analysis tool that scans Git repositories, directories, and files for hardcoded secrets such as API keys, passwords, and tokens. It can run locally, in CI pipelines, or as a pre-commit hook to detect credential leaks before they reach production. Gitleaks uses pattern-based rules and supports scanning full Git history.


