gitleaks 8.30.1 added rules to detect leaked secrets in repos

flaviocopes.com19 min read

The author explains how to use gitleaks to scan Git repositories, directories, and streams for leaked secrets before they can be committed, pushed, or deployed by humans or coding agents. The guide details how gitleaks detects secrets using rules, entropy, and allowlists, and demonstrates how to integrate the scanner into pre-commit and pre-push hooks, agent workflows, and GitHub Actions CI pipelines. Open article →