From feb0cf47801bc6ef33c09d18d2b054cee23fcb1e Mon Sep 17 00:00:00 2001 From: mrrishi Date: Sun, 10 Nov 2024 00:01:21 +0530 Subject: [PATCH] fix: recommend Signed-off-by: mrrishi Signed-off-by: jokestax --- recommend/registry/registry.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recommend/registry/registry.go b/recommend/registry/registry.go index 61046498..933d7920 100644 --- a/recommend/registry/registry.go +++ b/recommend/registry/registry.go @@ -78,6 +78,9 @@ func (r *Scanner) loadDockerAuthConfigs() { } for _, conf := range confsWrapper.Auths { + if len(conf.Auth) == 0 { + continue + } data, _ := base64.StdEncoding.DecodeString(conf.Auth) userPass := strings.SplitN(string(data), ":", 2) r.authConfiguration.authCreds = append(r.authConfiguration.authCreds, getAuthStr(userPass[0], userPass[1]))