Skip to content

Commit

Permalink
fix: fix typo that caused attestation verification failure (#2199)
Browse files Browse the repository at this point in the history
Signed-off-by: Asra Ali <asraa@google.com>

Signed-off-by: Asra Ali <asraa@google.com>
  • Loading branch information
asraa committed Aug 24, 2022
1 parent 13b84a2 commit b3b6ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cosign/tlog.go
Expand Up @@ -365,7 +365,7 @@ func proposedEntry(b64Sig string, payload, pubKey []byte) ([]models.ProposedEntr
// The fact that there's no signature (or empty rather), implies
// that this is an Attestation that we're verifying.
if len(signature) == 0 {
e, err := intotoEntry(context.Background(), signature, pubKey)
e, err := intotoEntry(context.Background(), payload, pubKey)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit b3b6ae2

Please sign in to comment.