claudegoodies
Command

security-scan

From alirezarezvani

Run the security scan gate before pushing.

Install

/security-scan

Facts

Status
Actively maintained
Last commit

Source preview

The instructions Claude Code reads when this command runs.

1. Ensure dependencies are installed:
   ```bash
   pip install safety==3.2.4
   brew install gitleaks  # or appropriate package manager
   ```
2. Scan for committed secrets:
   ```bash
   gitleaks detect --verbose --redact
   ```
   - Resolve any findings before continuing.
3. Audit Python dependencies (if requirements files exist):
   ```bash
   for f in $(find . -name "requirements*.txt" 2>/dev/null); do
       safety check --full-report --file "$f"
   done
   ```
4. Record results in the commit template's Testing section.
5. After a clean pass, proceed with commit and push workflow.
View full source on GitHub →

Other slash commands