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

AWS ECR login fails in windows-2022 20241211.1.0 #11172

Open
2 of 15 tasks
PatTheSilent opened this issue Dec 12, 2024 · 2 comments
Open
2 of 15 tasks

AWS ECR login fails in windows-2022 20241211.1.0 #11172

PatTheSilent opened this issue Dec 12, 2024 · 2 comments

Comments

@PatTheSilent
Copy link

Description

We've started experiencing failures to login to AWS ECR starting from windows-2022 20241211.1.0
We're using "big" runners, which have received the update to 20241211.1.0 on which we're experiencing this failure.
We're not experiencing this on windows-2022 runners, which still have 20241201.2.0

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Works as expected in 20241201.2.0
fails in 20241211.1.0

Is it regression?

20241201.2.0

Expected behavior

I'm able to authenticate with AWS ECR using aws-actions/amazon-ecr-login@v1

Actual behavior

Error: Could not login to registry redacted.dkr.ecr.eu-west-1.amazonaws.com: WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error saving credentials: error storing credentials - err: exit status 1, out: `A specified logon session does not exist. It may already have been terminated.`

Repro steps

  1. Have the following steps in your workflow:
- name: Configure AWS Credentials
  uses: aws-actions/configure-aws-credentials@v4
  with:
    aws-region: eu-west-1
    role-to-assume: arn:aws:iam::redacted:role/redacted
    role-skip-session-tagging: true
    role-duration-seconds: 3600

- name: Login to Amazon ECR
  id: login-ecr
  uses: aws-actions/amazon-ecr-login@v1
  with:
    mask-password: true
  1. Observe failure
@kishorekumar-anchala
Copy link
Contributor

Hi @PatTheSilent ,

Thank you for raising the issue , we will look into the issue and update Asap

@mavimo
Copy link

mavimo commented Dec 12, 2024

We have a similar issue moving from 20241202.1.0 to 20241211.2.0 where executing docker login fail to save credentials:

Run docker/login-action@v3
Logging into us-docker.pkg.dev/XXXXXXXXX...
Error: Error saving credentials: error storing credentials - err: exit status 1, out: `The stub received bad data.`

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

No branches or pull requests

4 participants