Skip to main content

SLSA Field Exists in Provenance Document

Type: Rule
ID: slsa-field-exists
Source: v2/rules/slsa/field-exists.yaml
Rego Source: field-exists.rego
Labels: SLSA, Image

Verify the specified field exists in the provenance document.

note

This rule requires SLSA Provenance. See here for more details.

tip

Signed Evidence for this rule IS NOT required by default but is recommended.

warning

Rule requires evaluation with a target. Without one, it will be disabled unless the --all-evidence flag is provided.

Usage example

uses: slsa/field-exists@v2

Evidence Requirements

FieldValue
signedFalse
content_body_typeslsa
target_typecontainer

Rule Parameters (with)

ParameterDefault
paths[]
violations_threshold0