export_sarif
Run a SAST scan and export results in SARIF 2.1.0 format for CI/CD integration with platforms like GitHub Code Scanning, GitLab SAST, and Azure DevOps.
Instructions
Run a SAST scan and export results in SARIF 2.1.0 format for CI/CD integration.
SARIF is the industry standard format consumed by GitHub Code Scanning, GitLab SAST, Azure DevOps, and other CI/CD platforms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_path | Yes | The absolute path to the directory or file to scan. | |
| scanner_name | No | The scanner to use ('bandit', 'njsscan', 'bearer', 'semgrep', 'trivy', 'codeql', 'checkov'). Defaults to 'bearer'. | bearer |
| min_severity | No | Minimum severity to report (LOW, MEDIUM, HIGH, CRITICAL). | LOW |
| min_confidence | No | Minimum confidence to report (LOW, MEDIUM, HIGH). | LOW |
| output_path | No | Optional path to write the SARIF file. If empty, returns the SARIF JSON as a string. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |