save_baseline
Run a static analysis scan and save the results as a named baseline. Use the baseline to compare future scans and identify new issues.
Instructions
Run a scan and save the results as a named baseline for future comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_path | Yes | The absolute path to the directory to scan. | |
| tag | No | A name for this baseline (e.g., 'main', 'pre-release'). Defaults to 'latest'. | latest |
| scanner_name | No | Scanner to use, or 'scan_all' to baseline the deduplicated results of every installed scanner (recommended for policy gating with `evaluate_policy(fail_on_new=True)`). Defaults to 'bearer'. | bearer |
| min_severity | No | Minimum severity to include (LOW, MEDIUM, HIGH, CRITICAL). | LOW |
| min_confidence | No | Minimum confidence to include (LOW, MEDIUM, HIGH). | LOW |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |