git-secrets
« Back to VersTracker
Description:
Prevents you from committing sensitive information to a git repo
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Security
Tags: security secrets git devsecops pre-commit
Install: brew install git-secrets
About:
Git-secrets scans commits, commit messages, and merge requests for patterns indicating sensitive information like AWS credentials. It prevents commits by rejecting them if a prohibited pattern is found. This tool helps enforce security policies and stop accidental data leaks before they reach the remote repository.
Key Features:
  • Scans commits and messages for secrets using regex patterns
  • Blocks commits that contain prohibited patterns
  • Supports custom and shared pattern repositories
  • Integrates with CI/CD pipelines for pre-push checks
Use Cases:
  • Preventing AWS credentials from being committed to public or private repos
  • Enforcing security compliance in team development workflows
  • Scanning existing repositories for historical secret leaks
Alternatives:
  • truffleHog – Scans git history for high-entropy strings and keywords, whereas git-secrets focuses on blocking commits via regex hooks.
  • gitleaks – Detects secrets in the entire git history using configurable rules, often used in CI, while git-secrets is primarily a pre-commit hook guard.
Version History
Detected Version Rev Change Commit