Skip to content

Commit fd8526f

Browse files
authored
Merge pull request #1667 from st3penta/EC-1410
Add SLSA v1 provenance to allowed predicate types
2 parents 7b9cf93 + b1c1e3c commit fd8526f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

policy/lib/rule_data.rego

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ rule_data_defaults := {
1111
"known_attestation_types": ["https://in-toto.io/Statement/v0.1"],
1212
#
1313
# Used in release/slsa_provenance_available
14-
"allowed_predicate_types": ["https://slsa.dev/provenance/v0.2"],
14+
"allowed_predicate_types": ["https://slsa.dev/provenance/v0.2", "https://slsa.dev/provenance/v1"],
1515
#
1616
# Used in release/slsa_build_build_service
1717
"allowed_builder_ids": ["https://tekton.dev/chains/v2"],

policy/release/slsa_provenance_available/slsa_provenance_available_test.rego

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test_att_predicate_type if {
1414
attestations := _mock_attestations(["spam"])
1515
expected_deny := {{
1616
"code": "slsa_provenance_available.attestation_predicate_type_accepted",
17-
"msg": "Attestation predicate type \"spam\" is not an expected type (https://slsa.dev/provenance/v0.2)",
17+
"msg": "Attestation predicate type \"spam\" is not an expected type (https://slsa.dev/provenance/v0.2, https://slsa.dev/provenance/v1)", # regal ignore:line-length
1818
}}
1919
lib.assert_equal_results(slsa_provenance_available.deny, expected_deny) with input.attestations as attestations
2020
}

0 commit comments

Comments
 (0)