Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECR login does not work with long branch names #504

Open
jozefizso opened this issue Aug 28, 2023 · 0 comments
Open

ECR login does not work with long branch names #504

jozefizso opened this issue Aug 28, 2023 · 0 comments

Comments

@jozefizso
Copy link

Describe the bug
The aws-actions/amazon-ecr-login action will fail if name of a git branch has long name.

To Reproduce
Steps to reproduce the behavior:

  1. Create git branch test/aws_long_af803fa7c772b09daf6c8df8be318e1480d5e4481255bc1a5d2b416651d25a95
  2. Create GHA which uses aws-actions/configure-aws-credentials@v2.2.0 and aws-actions/amazon-ecr-login@v1.7.0
  3. Run the action
  4. AWS ECR login will fail with error Error saving credentials: error storing credentials - err: exit status 1, out: The stub received bad data.

Expected behavior
ECR login will work regardless the git branch name.

Github Actions runner image:
Image: windows-2022
Version: 20230820.1.0
Included Software: https://github.com/actions/runner-images/blob/win22/20230820.1/images/win/Windows2022-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20230820.1

Additional context
Using a short branch name like test/aws_short works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant