Skip to content

Commit

Permalink
Merge branch 'main' into fix-probe
Browse files Browse the repository at this point in the history
  • Loading branch information
jokestax authored Dec 21, 2024
2 parents 03fa52f + 9ad1b99 commit d785821
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 d785821

Please sign in to comment.