semgrep_scan
Run static code analysis on provided files using Semgrep to detect vulnerabilities and return findings in JSON format for detailed inspection and remediation.
Instructions
Runs a Semgrep scan on provided code content and returns the findings in JSON format
Args: code_files: List of dictionaries with 'filename' and 'content' keys config: Semgrep configuration (e.g. "auto" or absolute path to rule file)
Returns: Dictionary with scan results in Semgrep JSON format
Input Schema
Name | Required | Description | Default |
---|---|---|---|
code_files | Yes | ||
config | No | auto |