Skip to content

Commit

Permalink
fix: fix error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
suzuki-shunsuke committed Nov 11, 2022
1 parent a9f100c commit 137528a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions verifiers/internal/gha/rekor.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ func verifyTlogEntry(ctx context.Context, rekorClient *client.Rekor, e models.Lo

verifier, err := signature.LoadECDSAVerifier(pubs[*e.LogID].PubKey, crypto.SHA256)
if err != nil {
return nil, fmt.Errorf("%w: %s", err, "unable to fetch Rekor public keys from TUF repository")
return nil, fmt.Errorf("%w: %s", err, "unable to load a ECDSA verifier")
}

// This function verifies the inclusion proof, the signature on the root hash of the
// inclusion proof, and the SignedEntryTimestamp.
if err := rverify.VerifyLogEntry(ctx, &e, verifier); err != nil {
return nil, fmt.Errorf("%w: %s", err, "unable to fetch Rekor public keys from TUF repository")
return nil, fmt.Errorf("%w: %s", err, "unable to verify a log entry")
}

return &e, nil
Expand Down

0 comments on commit 137528a

Please sign in to comment.