preview_security_disposition
Preview what a disposition would cover before creating or changing it. For a cluster vulnerability: the canonical selector, how many occurrences across which clusters and workloads it would match, and the observations it would exclude (ambiguous or unattributed add-on ownership, a fix already available); give occurrence_id + disposition to preview a new policy, or policy_id to re-preview an existing one. With scope repository_code: the Semgrep or Checkov finding it would be recorded against (severity, title, line), whether it can be created and, if not, why. Computes only; records nothing. Always run it before create_security_disposition so the confirmation names the real blast radius.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | With scope repository_code: the file the finding is in, as get_application_code_security reports it (file_path). | |
| tool | No | With scope repository_code: semgrep or checkov, the scanner that reported the finding (get_application_code_security). | |
| scope | No | What the disposition is pinned to. For a cluster vulnerability, with occurrence_id: organisation_addon (the default) pins the add-on the occurrence is attributed to across the organisation and needs a high-confidence add-on attribution; workload pins the one workload (cluster, kind, namespace, name); image pins the image digest wherever it runs. Use workload or image when the occurrence has no add-on attribution (operator-managed pods, plain manifests, control-plane pods, charts outside the catalogue). repository_code is a Semgrep or Checkov finding of a pipeline repository: pass application_id or repository_id, tool, rule_id and path instead of occurrence_id, and the Ankra Pipelines image gate stops blocking on that rule in that file while the disposition is active. Never for a CRITICAL finding. | |
| rule_id | No | With scope repository_code: the finding's rule id, as get_application_code_security reports it. | |
| policy_id | No | Existing policy id (UUID) from list_security_dispositions. Exactly one of occurrence_id or policy_id. | |
| expires_at | No | Review deadline as an RFC 3339 timestamp. | |
| disposition | No | acknowledged or accepted_risk. Required with occurrence_id. With scope repository_code: false_positive or accepted_risk. | |
| occurrence_id | No | Occurrence id (UUID) from get_security_finding or list_security_finding_occurrences. Exactly one of occurrence_id or policy_id, unless scope is repository_code. | |
| repository_id | No | With scope repository_code: the pipeline repository (UUID). Exactly one of application_id or repository_id. | |
| application_id | No | With scope repository_code: the application (UUID) whose pipeline repository the finding belongs to. Exactly one of application_id or repository_id. | |
| expire_when_fix_available | No | Whether the policy should lapse as soon as a fixed version exists. |