Skip to content

Commit

Permalink
fix ValidateStepResultsVariables to validate stepResults only
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhelil committed Sep 17, 2024
1 parent cd8a41e commit 18dee1a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/apis/pipeline/v1/task_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,5 @@ func ValidateStepResultsVariables(ctx context.Context, results []StepResult, scr
resultsNames.Insert(r.Name)
}
errs = errs.Also(substitution.ValidateNoReferencesToUnknownVariables(script, "step.results", resultsNames).ViaField("script"))
errs = errs.Also(substitution.ValidateNoReferencesToUnknownVariables(script, "results", resultsNames).ViaField("script"))
return errs
}

0 comments on commit 18dee1a

Please sign in to comment.