evaluate_policy
Run all security scanners against a target directory and evaluate findings against a CI policy to return a PASS/FAIL verdict, enabling pipeline gating with customizable thresholds for severity and confidence.
Instructions
Run all scanners and evaluate findings against a CI security policy.
Returns an explicit PASS/FAIL verdict suitable for gating a pipeline. A
threshold of -1 means "no limit" for that severity. When fail_on_new
is set, the result also fails if any finding is new relative to the named
baseline (created with save_baseline).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_path | Yes | The absolute path to the directory to scan. | |
| max_critical | No | Max allowed CRITICAL findings (default 0). -1 = unlimited. | |
| max_high | No | Max allowed HIGH findings. -1 = unlimited (default). | |
| max_medium | No | Max allowed MEDIUM findings. -1 = unlimited (default). | |
| fail_on_new | No | If true, fail when findings are new vs. the baseline. | |
| baseline_tag | No | Baseline tag to diff against when ``fail_on_new`` is set. | latest |
| min_severity | No | Minimum severity to include in the scan. | LOW |
| min_confidence | No | Minimum confidence to include in the scan. | LOW |
| output_format | No | 'markdown' (default) or 'json' (machine-readable verdict). | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |