Comments (5)
my account ID starts with 0 and in debug mode I see that 0 was removed
from amazon-ecr-login.
Interesting, I was not able to reproduce that behavior in the " Login to Amazon ECR using explicit registry ID" step here:
https://github.com/aws-actions/amazon-ecr-login/runs/453675212?check_suite_focus=true
Was there possibly extra whitespace around the registry ID in your workflow file? If you have CloudTrail turned on in your account, it would also be great to know what value the GetAuthorizationToken is actually receiving.
from amazon-ecr-login.
Good questions. There may have been a space in the ID. Also, I'm running in a self-hosted runner, and that runner is using an Instance Profile, so I'm not using the configure-aws-credentials
action, therefore, am entering the registryId
directly.
As for CloudTrail - the only events I see are from the successful push, which leads me to believe the action is targeting an invalid endpoint.
from amazon-ecr-login.
It looks like the Actions core library trims all inputs anyway, so I don't think an extra space would be the problem.
https://github.com/actions/toolkit/blob/master/packages/core/src/core.ts#L74
It also looks like GetAuthorizationToken calls with invalid parameters don't actually get logged in CloudTrail. When I do aws ecr get-authorization-token --registry-ids 123456 --region us-west-2
manually, the call does not get logged, only successful calls.
Anyway, I added some debugging statements on the master branch to print out the actual registry IDs used in the call. In order to see them, you can set the secret ACTIONS_STEP_DEBUG
to true in your repository and use aws-actions/amazon-ecr-login@master
in your workflow file.
from amazon-ecr-login.
The debugging change has been deployed to the v1 tag
from amazon-ecr-login.
Related Issues (20)
- Node16 Deprecation HOT 2
- Masking Docker Credentials in Amazon ECR Login Action HOT 5
- Release v2 to enable the documented usage to work HOT 5
- Error: getaddrinfo ENOTFOUND api.ecr-public.ap-northeast-1.amazonaws.com HOT 3
- Passing ECR credentials to another job doesn't work HOT 7
- Building image and then reusing it fails HOT 2
- Deprecating set-output commands HOT 1
- Getting a Registry alias of a public ECR repository with ${{ steps.login-ecr-public.outputs.registry }}
- Docker Login fails with V2; Move from --password to --password-stdin HOT 1
- Node 16 Deprecation Warning HOT 1
- get error with v2 login HOT 1
- [Feature request] Remove dependency on docker client HOT 6
- Could not login to registry xxxxxxxx WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error response from daemon: Get "https://xxxxxxxxxxxx.amazonaws.com/v2/": net/http: TLS handshake timeout HOT 1
- Update from Node 16 to Node 20 HOT 1
- Unable to login into a public ecr HOT 2
- Need ability to skip logout
- Action does not support EKS pod identities
- My self-hosted runner successes about only 1 time per one day. It stops at aws-action/amazon-ecr-login@v2. error message `INFO ProcessInvokerWrapper] Finished process xxxx with exit code 102` HOT 1
- Private ECR credentials are not passed from first job to second job
- Add optional authorization token expiration input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-ecr-login.