Skip to content

Commit

Permalink
fix: recommend
Browse files Browse the repository at this point in the history
Signed-off-by: mrrishi <[email protected]>
Signed-off-by: jokestax <[email protected]>
  • Loading branch information
jokestax committed Dec 22, 2024
1 parent 5cf0ef0 commit feb0cf4
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 feb0cf4

Please sign in to comment.