Skip to content

Commit

Permalink
Update pkg/build/pipeline.go
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Johnson <[email protected]>
Signed-off-by: Ajay Kemparaj <[email protected]>
  • Loading branch information
ajayk and jonjohnsonjr authored Jan 6, 2025
1 parent 24f8495 commit 255961a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func validateWith(data map[string]string, inputs map[string]config.Input) (map[s
return data, fmt.Errorf("checksum input %q for pipeline, invalid length", k)
}
case "expected-commit":
if !matchValidShaChars(data[k]) || len(data[k]) != 40 {
if !matchValidShaChars(data[k]) || len(data[k]) != expectedShaLength(k) {
return data, fmt.Errorf("expected commit %q for pipeline contains invalid characters or invalid sha length", k)
}
}
Expand Down

0 comments on commit 255961a

Please sign in to comment.