Skip to content

Commit

Permalink
Update pkg/cosign/verify.go
Browse files Browse the repository at this point in the history
Co-authored-by: Colleen Murphy <cmurphy@users.noreply.github.com>
Signed-off-by: Cody Soyland <codysoyland@github.com>
  • Loading branch information
codysoyland and cmurphy authored Dec 18, 2024
1 parent 00d3e2e commit 2c27fc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cosign/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -1593,7 +1593,7 @@ func verifyImageAttestationsSigstoreBundle(ctx context.Context, signedImgRef nam
}
dsse, ok := bundle.Content.(*protobundle.Bundle_DsseEnvelope)
if !ok {
return errors.New("bundle does not contain a DSSE envelope")
return fmt.Errorf("bundle does not contain a DSSE envelope")
}
payload, err := json.Marshal(dsse.DsseEnvelope)
if err != nil {
Expand Down

0 comments on commit 2c27fc5

Please sign in to comment.