Comments (15)
@delpic The error message you get is thrown directly by aws-cli
which makes it a bit tricky to debug. The cause is usually:
- You don't have permissions to the relevant call (ie
ecr:GetAuthorizationToken
) - Your credentials are wrong or missing
- The supplied access key has MFA requirements, but no MFA token is given
Can you verify that you can call aws ecr get-authorization-token
and aws ecr get-login
locally with the same credentials, and if so, the version of aws-sdk you're using? It would also be helpful to see the relevant IAM permissions for the credentials you're using.
from publish-docker-github-action.
Apologies, I got redirected to another project that needed my attention. I will close this for now as we have completed our POC for GitHub Actions. When we revisit this and if we encounter any problems, I'll open up an issue. Thank you for following up and for helping me out.
from publish-docker-github-action.
The registry needs to be passed without the protocol
from publish-docker-github-action.
Are you referring to registry: ${{ steps.ecr.outputs.registry }}
?
from publish-docker-github-action.
Yes. This was introduced with the latest release. I'll have a look at automatically removing it in the next version
from publish-docker-github-action.
Should be fixed with https://github.com/elgohr/Publish-Docker-Github-Action/releases/tag/2.6
Please verify
from publish-docker-github-action.
Thanks.
I'm getting the following still:
Run elgohr/ecr-login-action@master
with:
access_key: ***
secret_access_key: ***
region: ***
/usr/bin/docker run --name e959fb2ba5f27029b5488980507204831c5fbc_6223e1 --label e959fb --workdir /github/workspace --rm -e INPUT_ACCESS_KEY -e INPUT_SECRET_ACCESS_KEY -e INPUT_REGION -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/slackcat/slackcat":"/github/workspace" e959fb:2ba5f27029b5488980507204831c5fbc
An error occurred (UnrecognizedClientException) when calling the GetAuthorizationToken operation: The security token included in the request is invalid.
##[error]Docker run failed with exit code 255
from publish-docker-github-action.
I guess you would have to login first (using the registry)
from publish-docker-github-action.
Did something change with ecr-login-action
that would require me to make changes to my code? This was working fine until now.
Thanks again for looking into.
from publish-docker-github-action.
Would be good to know until when.
https://github.com/elgohr/ecr-login-action/releases/tag/0.0.3
from publish-docker-github-action.
Worked fine with 0.0.3
. Last time I used it when it was successful was this past Monday. I noticed this issue yesterday, so probably after 0.0.4
came out.
from publish-docker-github-action.
Could you try both and verify that? Shouldn't be the problem, as I understood that action.yml is just metadata
from publish-docker-github-action.
Apologies for the late reply. Been working on multiple projects at the same time.
It's really strange, the previous versions are not working as well. I went back to 0.0.2
as well, same result though I get a different error:
Login to ECR1s
##[error]Docker run failed with exit code 255
Run elgohr/[email protected]
with:
access_key: ***
secret_access_key: ***
region: ***
/usr/bin/docker run --name e959fb6624d05f28664f4cb6ff7149c5536e47_d2e95b --label e959fb --workdir /github/workspace --rm -e INPUT_ACCESS_KEY -e INPUT_SECRET_ACCESS_KEY -e INPUT_REGION -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/slackcat/slackcat":"/github/workspace" e959fb:6624d05f28664f4cb6ff7149c5536e47
An error occurred (UnrecognizedClientException) when calling the GetAuthorizationToken operation: The security token included in the request is invalid.
AWS Access Key ID [None]: AWS Secret Access Key [None]: Default region name [None]: Default output format [None]:
##[error]Docker run failed with exit code 255
I confirmed that my secrets are there. For sanity, I deleted the secrets and entered them again, but same result.
Thanks!
from publish-docker-github-action.
@effata could you verify that? I'm pretty limited in testing this... Sorry
from publish-docker-github-action.
I guess we can close this?
from publish-docker-github-action.
Related Issues (20)
- [BUG] tags example in README is deprecated HOT 2
- `tag_semver` does not recognize pre-releases HOT 1
- [BUG] Get https://***:6000/v2/: http: server gave HTTP response to HTTPS client
- [FEATURE] `no_push: true` should not complain about missing credentials HOT 5
- [BUG] Not logged in to https://index.docker.io/v1/ HOT 1
- Action Required: Fix Renovate Configuration HOT 1
- [BUG] Migrating from GitHub Packages Docker registry to GitHub Container Registry HOT 2
- "ca-certificates-20191127-r2: bad archive" error HOT 1
- [FEATURE]
- [FEATURE] Do not overwrite existing images HOT 4
- [BUG] docker:20.10.8 seem to break the test.bats HOT 15
- [BUG] Docker build failed with exit code 1 HOT 1
- [BUG] Example for using tags seems to be broken HOT 2
- Question: Action does not get the tag-information HOT 2
- [BUG] HOT 5
- [BUG] `sed` error when switching to v4 actions and built against tag HOT 8
- tag_semver is ignored for v4 HOT 6
- [BUG] ::set-output deprecated in actions HOT 7
- [BUG] Old tag confuses automated dependency updaters HOT 4
- [BUG] docker:not found HOT 1
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 publish-docker-github-action.