Skip to content

Commit 499ecb0

Browse files
authored
Merge branch 'tektoncd:main' into main
2 parents 7067f36 + 4117846 commit 499ecb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chains/formats/slsa/v1/pipelinerun/pipelinerun.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func buildConfig(ctx context.Context, pro *objects.PipelineRunObjectV1Beta1) Bui
119119

120120
steps := []attest.StepAttestation{}
121121
// tr.Status.TaskSpec.Steps and tr.Status.Steps should be sime size
122-
if len(tr.Status.TaskSpec.Steps) != len(tr.Status.Steps) {
122+
if tr.Status.TaskSpec == nil || len(tr.Status.TaskSpec.Steps) != len(tr.Status.Steps) {
123123
logger.Errorf("Mismatch in number of steps for task run %s. TaskSpec steps: %d, Status steps: %d",
124124
tr.Name, len(tr.Status.TaskSpec.Steps), len(tr.Status.Steps))
125125
continue // Skip this task run entirely

0 commit comments

Comments
 (0)