diff --git a/pkg/registry/client_test.go b/pkg/registry/client_test.go index 0140b038c..47782135a 100644 --- a/pkg/registry/client_test.go +++ b/pkg/registry/client_test.go @@ -214,6 +214,11 @@ func TestValidateHost(t *testing.T) { host: "", wantErr: true, }, + { + name: "url with query parameters", + host: "ghcr.io?param=value", + wantErr: true, + }, } for _, tt := range tests {