git-sensitive-scan
Run sensitive information scanning before commit. Use to check staged files for secrets, credentials, private keys, and local-only endpoints.
SKILL.mdskills/git-sensitive-scan/SKILL.md
GitHubGit Sensitive Scan
Use this skill before git commit to avoid leaking secrets or local/private environment information.
Run commands from repository root:
E:\coding\TermLink
Workflow
- Scan staged files:
powershell -ExecutionPolicy Bypass -File ./scripts/git-sensitive-scan.ps1 -Staged
- Scan specific files (optional):
powershell -ExecutionPolicy Bypass -File ./scripts/git-sensitive-scan.ps1 -Files ./.claude/skills/android-local-build-debug/local-config.ps1
If a finding is intentional and safe, add marker
sensitive-scan:allowon that line.Commit only after scanner passes.
Notes
- Pre-commit hook calls this scanner automatically once
core.hooksPath=.githooksis enabled. local-config.ps1files should remain local and not be tracked by git.