Skip to content

Commit

Permalink
Don't crash if a Docker password contains a colon (#2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 authored Aug 18, 2024
1 parent 34de67d commit 145a180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/docker/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func GetDockerAuth(dockerConfig *DockerConfig, imageName string) (string, error)
return "", err
}

decodedAuthSplit := strings.Split(string(decodedAuth), authStringSep)
decodedAuthSplit := strings.SplitN(string(decodedAuth), authStringSep, authStringLength)

if len(decodedAuthSplit) != authStringLength {
return "", errors.New("unexpected auth string")
Expand Down

0 comments on commit 145a180

Please sign in to comment.