Back to skills
SKILL.md
Git Secrets Precommit Scanner
ASecurityScans git diffs for exposed secrets using truffleHog entropy detection and custom regex patterns. Integrates with pre-commit hooks and GitHub push protection API for real-time blocking.
- 36 stars
- 0 votes
- 0 copies
- 2 views
- Added June 8, 2026
Works with
Security analysis
100/100npx -y skills add agentskillexchange/skills --skill git-secrets-precommit-scanner --agent claude-codeAre you the author of Git Secrets Precommit Scanner?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-git-secrets-precommit-scanner)---
name: "Git Secrets Pre-Commit Scanner"
slug: "git-secrets-precommit-scanner"
description: "Scans git diffs for exposed secrets using truffleHog entropy detection and custom regex patterns. Integrates with pre-commit hooks and GitHub push protection API for real-time blocking."
github_stars: 26006
verification: "security_reviewed"
source: "https://github.com/trufflesecurity/trufflehog"
author: "trufflesecurity"
category: "Security & Verification"
framework: "OpenClaw"
tool_ecosystem:
github_repo: "trufflesecurity/trufflehog"
github_stars: 26006
---
# Git Secrets Pre-Commit Scanner
Scans git diffs for exposed secrets using truffleHog entropy detection and custom regex patterns. Integrates with pre-commit hooks and GitHub push protection API for real-time blocking.
## Installation
Use the upstream install or setup path that matches your environment:
- docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --org=trufflesecurity
- brew install trufflehog
- docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest github --repo https://github.com/trufflesecurity/test_keys
- docker run --rm -it -v "%cd:/=\%:/pwd" trufflesecurity/trufflehog:latest github --repo https://github.com/trufflesecurity/test_keys
Requirements and caveats from upstream:
- ### Docker:
- <sub><i>_Ensure Docker engine is running before executing the following commands:_</i></sub>
- ### Using installation script, verify checksum signature (requires cosign to be installed)
Basic usage or getting-started notes:
- # :rocket: Quick Start
- Clone the git repo. For example [test keys](git@github.com:trufflesecurity/test_keys.git) repo.
- Source: https://github.com/trufflesecurity/trufflehog
- Extracted from upstream docs: https://raw.githubusercontent.com/trufflesecurity/trufflehog/HEAD/README.md
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/git-secrets-precommit-scanner/)
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.