Skip to main content

Verify build time

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

Verify the artifact was created within the specified time window.

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/build-time@v2

Evidence Requirements

FieldValue
signedFalse
content_body_typeslsa
target_typecontainer

Rule Parameters (with)

ParameterDefault
start_hour8
end_hour20
workdays['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday']