Secret Scanner
Hooks security 1,237
Automatically detects hardcoded secrets before git commits. Scans for API keys from 30+ providers (Anthropic: sk-ant-..., OpenAI: sk-..., AWS: AKIA..., Stripe: sk_live_..., Google: AIza..., GitHub: ghp_..., Vercel, Supabase, Hugging Face: hf_..., Replicate: r8_..., Groq: gsk_..., Databricks: dapi..., GitLab, DigitalOcean, npm, PyPI, and more), tokens, passwords, private keys, and database credentials. Blocks commits containing secrets and suggests using environment variables instead.
npx claude-code-templates@latest --hook security/secret-scanner claude-code — secret-scanner
Content
JSON
{
"description": "Automatically detects hardcoded secrets before git commits. Scans for API keys f..."
"hooks": {
"PreToolUse": [1 item]
}
}