mirror of
https://github.com/docker/login-action.git
synced 2026-11-16 05:55:00 +08:00
scopeToConfigDir joined the registry as given onto the Buildx config dir. For a registry given as a URL this produced config/https:/<host>/<scope>, and Buildx parses the first path element as the registry host, so it never finds these credentials. ECR always hits this: loginECR logs in to the proxy endpoint returned by GetAuthorizationToken, which is a URL (https://<id>.dkr.ecr.<region>.amazonaws.com), so a scoped ECR login wrote its credentials to a directory Buildx does not read, and logout looked in a different directory than login wrote to. Drop the URL scheme and trailing slashes before building the path. Assisted-By: Claude Signed-off-by: breken-ai <312387581+breken-ai@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| aws.test.ts | ||
| context.test.ts | ||
| docker.test.ts | ||
| dockerhub.test.ts | ||
| setup.unit.ts | ||