Change to requiring bundle v0.2

Signed-off-by: Cody Soyland <codysoyland@github.com>
This commit is contained in:
Cody Soyland 2024-08-09 16:36:16 -04:00
parent b783441540
commit 35b2cf70cf
No known key found for this signature in database

View file

@ -56,7 +56,7 @@ func NewLiveSigstoreVerifier(config SigstoreConfig) *LiveSigstoreVerifier {
}
func (v *LiveSigstoreVerifier) chooseVerifier(b *bundle.ProtobufBundle) (*verify.SignedEntityVerifier, string, error) {
if !b.MinVersion("0.3") {
if !b.MinVersion("0.2") {
return nil, "", fmt.Errorf("unsupported bundle version: %s", b.MediaType)
}
verifyContent, err := b.VerificationContent()