metadata-action icon indicating copy to clipboard operation
metadata-action copied to clipboard

IP address is not permitted to access this resource

Open ajithshah opened this issue 3 years ago • 3 comments

Contributing guidelines

I've found a bug, and:

  • [X] The documentation does not mention anything about my problem
  • [X] There are no open or closed issues that are related to my problem

Description

ERROR :-

Run docker/metadata-action@v4 Error: Although you appear to have the correct authorization credentials, the ORG_NAME organization has an IP allow list enabled, and your IP address is not permitted to access this resource.

Expected behaviour

Need to pass

Actual behaviour

ERROR :- Run docker/metadata-action@v4 Error: Although you appear to have the correct authorization credentials, the ORG_NAME organization has an IP allow list enabled, and your IP address is not permitted to access this resource.

Repository URL

No response

Workflow run URL

No response

YAML workflow

- name: Docker Meta
        id: meta
        uses: docker/metadata-action@v4
        with:
          context: git
          images: |
            ${{ inputs.docker_registry }}/${{ inputs.image_name }}
          tags: |          
            # Get image tag as master
            type=raw,value=master,enable=${{ github.ref == format('refs/heads/{0}', 'master') && contains(matrix.dockerfile-path, 'alpine') }}

Workflow logs

No response

BuildKit logs

No response

Additional info

No response

ajithshah avatar Sep 14 '23 02:09 ajithshah

@nicksieger @yano3 @frison @rumpl

Kindly look into it...

ajithshah avatar Sep 14 '23 02:09 ajithshah

> Error: Although you appear to have the correct authorization credentials, the `ORG_NAME` organization has an IP allow list enabled, and your IP address is not permitted to access this resource.

Where this error comes from? Please post logs of your workflow.

crazy-max avatar Oct 16 '23 23:10 crazy-max

Hi @crazy-max It just works, when I passed my custom PAT Token github-token: ${{ secrets.TOKEN_GITHUB }}

ajithshah avatar Oct 25 '23 02:10 ajithshah