From 9064aef123cac41fa154a4929a0ec9312aa325d0 Mon Sep 17 00:00:00 2001 From: Bob Callaway Date: Mon, 7 Feb 2022 08:55:26 -0500 Subject: [PATCH] make imageRef lowercase before parsing (#1409) Fixes: #1408 Signed-off-by: Bob Callaway --- cmd/cosign/cli/sign/sign.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cosign/cli/sign/sign.go b/cmd/cosign/cli/sign/sign.go index fc21f670dfa..74d45af83f2 100644 --- a/cmd/cosign/cli/sign/sign.go +++ b/cmd/cosign/cli/sign/sign.go @@ -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") }