Skip to content

Commit eb2815a

Browse files
authored
Merge pull request #1573 from lcarva/handle-vi-tekton-resources
Handle v1 Tekton resources build type
2 parents 9041946 + 2390a4b commit eb2815a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

policy/release/lib/attestations.rego

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ slsa_provenance_predicate_type_v1 := "https://slsa.dev/provenance/v1"
88

99
slsa_provenance_predicate_type_v02 := "https://slsa.dev/provenance/v0.2"
1010

11-
tekton_pipeline_run := "tekton.dev/v1beta1/PipelineRun"
11+
tekton_pipeline_run := "tekton.dev/v1/PipelineRun"
1212

1313
pipelinerun_att_build_types := {
1414
tekton_pipeline_run,
15-
# Legacy build type
15+
# Legacy build types
16+
"tekton.dev/v1beta1/PipelineRun",
1617
"https://tekton.dev/attestations/chains/pipelinerun@v2",
1718
}
1819

@@ -23,11 +24,12 @@ slsav1_pipelinerun_att_build_types := {
2324
tekton_slsav1_pipeline_run,
2425
}
2526

26-
tekton_task_run := "tekton.dev/v1beta1/TaskRun"
27+
tekton_task_run := "tekton.dev/v1/TaskRun"
2728

2829
taskrun_att_build_types := {
2930
tekton_task_run,
30-
# Legacy build type
31+
# Legacy build types
32+
"tekton.dev/v1beta1/TaskRun",
3133
"https://tekton.dev/attestations/chains@v2",
3234
}
3335

0 commit comments

Comments
 (0)