sast-runner

Run Semgrep SAST scans on source code and produce JSON reports.

3|1|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/naporin0624/claude-web-audit-plugins --skill sast-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sast-runner
Source: https://github.com/naporin0624/claude-web-audit-plugins/tree/main/skills/sast-runner
Command: npx skills add https://github.com/naporin0624/claude-web-audit-plugins --skill sast-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill wraps Semgrep to perform Static Application Security Testing (SAST), scanning source code for vulnerabilities, security anti-patterns, and OWASP Top 10 issues.

Core Features & Use Cases

  • Auto-detect languages and apply relevant rulesets
  • Output findings in JSON or human-readable formats
  • Use cases include scanning entire repositories or specific paths for security vulnerabilities

Quick Start

  • Install Semgrep using your preferred method:
    • pip install semgrep
    • brew install semgrep
    • docker pull semgrep/semgrep
  • Run with the CLI:
    • npx sast-runner .
    • npx sast-runner . --config security-audit
    • npx sast-runner . --json
    • npx sast-runner --list-configs
    • npx sast-runner --check

Frequently Asked Questions about sast-runner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan source code for security vulnerabilities using static analysis?

Static application security testing (SAST) scans source code without running it to identify vulnerabilities and security anti-patterns. This Skill automates SAST using Semgrep, which detects issues across multiple languages by applying predefined rulesets like OWASP Top 10 and CWE Top 25, then outputs findings with severity levels and security context.

Can I integrate SAST scanning into my CI pipeline?

Yes, this Skill runs Semgrep in CI pipelines to scan repositories automatically. It auto-detects languages, applies relevant security rulesets, and produces JSON or human-readable reports, making it suitable for continuous security monitoring without manual configuration per language.

What rulesets does Semgrep use for security scanning?

Semgrep offers multiple predefined rulesets: auto (language-specific detection), security-audit (broad security patterns), owasp-top-ten (OWASP vulnerabilities), cwe-top-25 (common weakness enumeration), and default. This Skill lets you choose the ruleset via the --config flag to match your security requirements.

How do I get structured security findings from a code scan?

This Skill runs Semgrep and parses the JSON output into a normalized ScanResult containing findings, metadata, severity levels, CWE/OWASP enrichment, and a summary. Use the --json flag to output machine-readable results for further processing or integration with security tools.

Does this work with multi-language repositories?

Yes, Semgrep auto-detects programming languages in your repository and applies relevant rules to each file type. This Skill scans the current directory or a specified path, making it suitable for polyglot codebases without separate configuration per language.

What output formats are available for security scan results?

This Skill produces both JSON (structured, machine-readable format for tooling integration) and human-readable reports. Use --json for programmatic consumption or the default format for direct review, with findings normalized for consistency across rule types and severity levels.