Skip to content

Commit

Permalink
fix: Fix error check for decodeSignature (#385)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Lewis <ianmlewis@gmail.com>

Signed-off-by: Ian Lewis <ianmlewis@gmail.com>
  • Loading branch information
Ian Lewis authored Dec 3, 2022
1 parent b9058c5 commit 267242e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verifiers/internal/gcb/provenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ func (self *Provenance) verifySignatures(prov *provenance) error {

// Decode the signature.
rsig, es := decodeSignature(sig.Sig)
if err != nil {
if len(es) != 0 {
errs = append(errs, es...)
continue
}
Expand Down

0 comments on commit 267242e

Please sign in to comment.