Home / Commands / alirezarezvani/claude-skills

security-scan

Run the security scan gate before pushing.

commandLicense: MIT Source: alirezarezvani/claude-skills

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/security-scan.md https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/.claude/commands/security-scan.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/security-scan.md https://raw.githubusercontent.com/alirezarezvani/claude-skills/HEAD/.claude/commands/security-scan.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
description: Run the security scan gate before pushing.
---

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.