Skip to content

Commit

Permalink
make imageRef lowercase before parsing (#1409)
Browse files Browse the repository at this point in the history
Fixes: #1408

Signed-off-by: Bob Callaway <bob.callaway@gmail.com>
  • Loading branch information
bobcallaway authored Feb 7, 2022
1 parent 5efee8a commit 9064aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cosign/cli/sign/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func SignCmd(ro *options.RootOptions, ko KeyOpts, regOpts options.RegistryOption
}

for _, inputImg := range imgs {
ref, err := name.ParseReference(inputImg)
ref, err := name.ParseReference(strings.ToLower(inputImg))
if err != nil {
return errors.Wrap(err, "parsing reference")
}
Expand Down

0 comments on commit 9064aef

Please sign in to comment.