security · git:20261113.9a6c905 · 2026-11-13 · sha256 dba9f916a78b978d
security git:20261113.9a6c905A
Immutable. This exact content never changes and is served at /api/v1/blob/dba9f916a78b978d.
--- description: security rules alwaysApply: true --- # Security Workflow > **Priority**: CRITICAL - a leaked secret is not fixed by rewriting the sentence later. > **Source**: codebase-reviewer, scripts AGENTS.md, security-upgrade skill ## 🔒 Pre-Commit Hooks - NEVER BYPASS Pre-commit hooks exist to protect intellectual property. **NEVER disable or bypass them.** ```bash # ❌ NEVER DO THIS git commit --no-verify # ✅ ALWAYS DO THIS git commit # Let hooks run ``` ## Security Scanning Tools | Language | Tool | Command | |----------|------|---------| | Node.js | npm audit | `npm audit --json` | | Go | govulncheck | `govulncheck ./...` | | Python | pip-audit | `pip-audit -r requirements.txt` | ## Security Upgrade Workflow 1. **Discovery** - Identify projects with dependencies 2. **Scan** - Run security scanners 3. **Upgrade** - Fix vulnerabilities 4. **Validate** - Compile, test, verify 5. **Re-scan** - Confirm fixes 6. **Commit** - Push with green CI ## CVE Response Priority | Severity | Response Time | |----------|---------------| | Critical | Immediate | | High | Same day | | Moderate | Within week | | Low | Next release | ## Secret Management - NEVER commit secrets to git - Use environment variables for API keys - Store secrets in secure credential managers - Use `.env.local` files (gitignored) - Prompt for secrets interactively in setup scripts ## Related Skills For comprehensive security workflows: - `superpowers-plus/skills/security-upgrade/` <!-- golden-agents:generated -->