Skip to content

Commit

Permalink
Remove incorrect check
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <[email protected]>
  • Loading branch information
codysoyland committed Dec 10, 2024
1 parent a9c13b8 commit 5fe5139
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/cosign/cli/verify/verify_attestation.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,9 @@ func (c *VerifyAttestationCommand) Exec(ctx context.Context, images []string) (e

// If a trusted root path is provided, we will use it to verify the bundle.
// Otherwise, the verifier will default to the public good instance.
if c.TrustedRootPath == "" {
co.TrustedMaterial, err = root.NewTrustedRootFromPath(c.TrustedRootPath)
if err != nil {
return fmt.Errorf("creating trusted root from path: %w", err)
}
co.TrustedMaterial, err = root.NewTrustedRootFromPath(c.TrustedRootPath)
if err != nil {
return fmt.Errorf("creating trusted root from path: %w", err)
}
case c.CARoots != "":
// CA roots + possible intermediates are already loaded into co.RootCerts with the call to
Expand Down

0 comments on commit 5fe5139

Please sign in to comment.