login-action/__tests__
breken-ai b4bb2a4ec0
keep registry-auth ecr: false instead of falling back to auto
registry-auth is parsed as YAML, so `ecr: false` (unquoted) is the
boolean false, and `auth.ecr || 'auto'` turned it into 'auto'. For an
ECR registry this runs the AWS SDK login with the given username and
password as AWS access keys, instead of the plain docker login the user
asked for. Only the quoted string "false" worked.

Convert the value to a string and only default to 'auto' when it is
missing or empty.

Assisted-By: Claude
Signed-off-by: breken-ai <312387581+breken-ai@users.noreply.github.com>
2026-10-05 14:21:32 +02:00
..
aws.test.ts switch to ESM and update config/test wiring 2026-03-01 11:29:31 +01:00
context.test.ts keep registry-auth ecr: false instead of falling back to auto 2026-10-05 14:21:32 +02:00
docker.test.ts keep registry-auth ecr: false instead of falling back to auto 2026-10-05 14:21:32 +02:00
dockerhub.test.ts log Docker Hub OIDC token exchange progress 2026-08-06 16:51:47 +02:00
setup.unit.ts switch from jest to vitest 2026-03-01 11:22:24 +01:00