Skip to content

Commit

Permalink
add functional tests for CARoots handling
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry S <dsavints@gmail.com>
  • Loading branch information
dmitris committed Jun 18, 2024
1 parent 782abca commit a2c7480
Show file tree
Hide file tree
Showing 2 changed files with 537 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/cosign/cli/verify/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ func (c *VerifyCommand) Exec(ctx context.Context, images []string) (err error) {
}
co.SCT = sct
}
default:
// Do nothing. Neither keyRef, c.Sk, nor certRef were set - can happen for example when using Fulcio and TSA.
// For an example see the TestAttachWithRFC3161Timestamp test in test/e2e_test.go.
}
co.SigVerifier = pubKey

Expand Down
Loading

0 comments on commit a2c7480

Please sign in to comment.