Git Product home page Git Product logo

Comments (15)

effata avatar effata commented on June 14, 2024 1

@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.

delpic avatar delpic commented on June 14, 2024 1

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.

elgohr avatar elgohr commented on June 14, 2024

The registry needs to be passed without the protocol

from publish-docker-github-action.

delpic avatar delpic commented on June 14, 2024

Are you referring to registry: ${{ steps.ecr.outputs.registry }}?

from publish-docker-github-action.

elgohr avatar elgohr commented on June 14, 2024

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.

elgohr avatar elgohr commented on June 14, 2024

Should be fixed with https://github.com/elgohr/Publish-Docker-Github-Action/releases/tag/2.6
Please verify

from publish-docker-github-action.

delpic avatar delpic commented on June 14, 2024

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.

elgohr avatar elgohr commented on June 14, 2024

I guess you would have to login first (using the registry)

from publish-docker-github-action.

delpic avatar delpic commented on June 14, 2024

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.

elgohr avatar elgohr commented on June 14, 2024

Would be good to know until when.

https://github.com/elgohr/ecr-login-action/releases/tag/0.0.3

from publish-docker-github-action.

delpic avatar delpic commented on June 14, 2024

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.

elgohr avatar elgohr commented on June 14, 2024

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.

delpic avatar delpic commented on June 14, 2024

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.

elgohr avatar elgohr commented on June 14, 2024

@effata could you verify that? I'm pretty limited in testing this... Sorry

from publish-docker-github-action.

elgohr avatar elgohr commented on June 14, 2024

I guess we can close this?

from publish-docker-github-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.