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

[BUG] Migrating from GitHub Packages Docker registry to GitHub Container Registry #117

Closed
qkdreyer opened this issue Feb 5, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@qkdreyer
Copy link

qkdreyer commented Feb 5, 2021

Describe the bug
After migrating from docker.pkg.github.com to ghcr.io, I'm getting a denied: permission_denied: write_package error while publishing

To Reproduce

workflow configuration

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repo
        uses: actions/checkout@master
        with:
          submodules: recursive
      - name: Build and publish to Registry
        uses: elgohr/Publish-Docker-Github-Action@master
        with:
          name: ORG/REPO/NAME
          username: ${{ github.actor }}
          password: ${{ github.token }}
          registry: ghcr.io
          workdir: NAME
          no_push: ${{ github.event_name == 'pull_request' }}

Expected behavior
Publish working

Additional context
I didn't have any permission denied errors while using the previous registry

@qkdreyer qkdreyer added the bug Something isn't working label Feb 5, 2021
@qkdreyer
Copy link
Author

qkdreyer commented Feb 5, 2021

Hm, I've just read the documentation, I guess my problem is :

If you want to authenticate to GitHub Container Registry in a GitHub Actions workflow, then you must use a personal access token (PAT). The GITHUB_TOKEN does not currently have the required permissions. During the GitHub Container Registry beta, the only supported form of authentication is the PAT.

@qkdreyer
Copy link
Author

qkdreyer commented Feb 5, 2021

Fixed by using a PAT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants