Skip to content

Commit 0e63153

Browse files
committed
update
1 parent 85d3eb5 commit 0e63153

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

verifiers/internal/gcb/provenance.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,12 @@ func validateRecipeType(builderID, recipeType string) error {
238238
case "v0.2":
239239
// In this version, the recipe type should be the same as
240240
// the builder ID.
241-
if builderID != recipeType {
242-
return fmt.Errorf("%w: expected '%s', got '%s'",
243-
serrors.ErrorInvalidRecipe, builderID, recipeType)
241+
if builderID == recipeType {
242+
return nil
244243
}
244+
err = fmt.Errorf("%w: expected '%s', got '%s'",
245+
serrors.ErrorInvalidRecipe, builderID, recipeType)
246+
245247
case "v0.3":
246248
// In this version, two recipe types are allowed, depending how the
247249
// build was made. We don't verify the version of the recipes,

0 commit comments

Comments
 (0)