Semgrep Scan

Run Semgrep SAST analysis for security and code quality

majiayu000 f9eaa77 2 files · 1.7 KB Updated 567 repo stars

File contents

Semgrep SAST Scan

Run static application security testing with Semgrep.

What To Do

  1. Install: pip install semgrep or brew install semgrep

  2. Run scan:

    semgrep scan --config=auto --json --output=semgrep-report.json
    
  3. Custom rules for .NET:

    semgrep scan --config=p/csharp --config=p/owasp-top-ten --config=p/jwt
    
  4. CI Integration:

    - script: semgrep scan --config=auto --error --json -o semgrep.json
      displayName: "SAST Scan"
    
  5. Interpret results: Fix HIGH/ERROR severity first. Use --severity=error to filter.

Arguments

  • --config=<ruleset>: Semgrep config (auto, p/csharp, p/owasp-top-ten)
  • --severity=<level>: Filter by severity (info, warning, error)

majiayu000/claude-skill-registry-data/tree/main/security/semgrep-scan commit f9eaa77ca5

Frequently asked questions

npx skillmds add majiayu000/semgrep-scan