Skip to content

Commit

Permalink
Verify ignore scratch images
Browse files Browse the repository at this point in the history
Signed-off-by: Russell Brown <[email protected]>
  • Loading branch information
rjbrown57 committed Jul 29, 2021
1 parent 0fdfaa9 commit ea24a67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/cosign/cli/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ func (c *VerifyCommand) Exec(ctx context.Context, args []string) (err error) {
co.SigVerifier = pubKey

for _, imageRef := range args {

if imageRef == "scratch" {
fmt.Fprintln(os.Stderr, " - scratch image ignored")
continue
}

ref, err := name.ParseReference(imageRef)
if err != nil {
return err
Expand Down

0 comments on commit ea24a67

Please sign in to comment.