From 4fbc59ad794f4055a28b5c0808d4753bf9df914d Mon Sep 17 00:00:00 2001 From: Asra Ali Date: Wed, 24 Aug 2022 09:27:01 -0500 Subject: [PATCH] fix: fix typo that caused attestation verification failure Signed-off-by: Asra Ali --- pkg/cosign/tlog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cosign/tlog.go b/pkg/cosign/tlog.go index 867ff369bb2..755b0a5ea19 100644 --- a/pkg/cosign/tlog.go +++ b/pkg/cosign/tlog.go @@ -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 }