gitleaks
Installation
SKILL.md
Secret Detection with Gitleaks
Scan the repository for hardcoded secrets, API keys, tokens, and credentials using gitleaks patterns.
What To Do
-
Check if gitleaks is installed:
- Run:
gitleaks versionor install viachoco install gitleaks/brew install gitleaks - Alternative: Use regex patterns manually if gitleaks CLI not available
- Run:
-
Run full repository scan:
gitleaks detect --source=. --report-format=json --report-path=gitleaks-report.json -
Run pre-commit scan (staged files only):
gitleaks protect --staged --report-format=json