mirror of
https://github.com/slsa-framework/slsa-verifier.git
synced 2026-05-16 13:36:33 +00:00
change error type
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
This commit is contained in:
@@ -86,7 +86,7 @@ func verifyEnvelopeSignature(ctx context.Context, sigstoreEnvelope *sigstoreBund
|
||||
}
|
||||
_, err = envelopeVerifier.Verify(ctx, sigstoreEnvelope.Envelope)
|
||||
if err != nil {
|
||||
return fmt.Errorf("%w: verifying envelope %w", serrors.ErrorInvalidPublicKey, err)
|
||||
return fmt.Errorf("%w: verifying envelope %w", serrors.ErrorNoValidSignature, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user