Skip to content

Commit

Permalink
fix: recommend
Browse files Browse the repository at this point in the history
Signed-off-by: mrrishi <[email protected]>
  • Loading branch information
jokestax committed Nov 15, 2024
1 parent e7b1e60 commit e2d828a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recommend/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]))
Expand Down

0 comments on commit e2d828a

Please sign in to comment.