Overview
Custom policies evaluate condition logic against supported targets such as vulnerabilities, packages, package versions, manifests, assets, secrets, and code findings. Use custom policies when built-in SLA, package, or manifest policy types do not cover the control you want to express.Targets
Supported target types are:vulnerabilitypackagepackage_versionmanifestassetsecretcode
Condition structure
Conditions use nested groups:
Rules use a field, operator, and value:
Condition rule
Operators
Operators depend on the field type:
For
in, contains, and overlaps, provide a JSON array value.
Actions
Custom policies can define actions:SLA action
Dry run
Dry run is available for custom policies with a target type. Use it to preview matches for a selected repository before relying on the policy in normal workflows. Dry runs can use the saved condition or a temporary condition override. For manifest and package-version targets, dry run uses current source evidence from the selected repository. Deleted references and removed dependency relationships are excluded.JSON import
Custom policies can be imported from JSON. Imported policies are created disabled so they can be reviewed before activation.Import shape