Open waldirborbajr opened 1 year ago
@waldirborbajr I know this is an old issue, but I wanted to call out this part of GitHub Packages documentation https://docs.github.com/en/packages/learn-github-packages/about-permissions-for-github-packages#about-scopes-and-permissions-for-package-registries
GitHub Packages only supports authentication using a personal access token (classic). For more information, see "Creating a personal access token."
Behaviour
I've create a PAT from Beta Fine-grained token, and maked ALL User and Repository permissions options to READ-WRITE, copied generated token.
Into my project repository I've created an Action Token called GH_PAT and copied token generatated from Fine-grained than executed action to generate a deploy do GHCR.io
After that I've executed that action to deploy, but I got a permission error when actions tries to deploy to GHCR.io
With Classic version of token Token (Classic) works perfectly without errors.
Repository permissions
User Permission
Action to deploy
Steps to reproduce this issue
Expected behaviour
Should made deploy to GHCR.io
Actual behaviour
• publishing • docker images • pushing image=ghcr.io//kvstok:0.2.1-arm64 ⨯ release failed after 1m20s error=docker images: failed to publish artifacts: failed to push ghcr.io//kvstok:0.2.1-arm64: exit status 1: The push refers to repository [ghcr.io/*/kvstok] 4a793d9ee315: Preparing ff8e7336f73c: Preparing c4d4f60bd31b: Preparing de51348d431b: Preparing denied: permission_denied: The token provided does not match expected scopes.**
Error: The process '/opt/hostedtoolcache/goreleaser-action/1.12.3/x64/goreleaser' failed with exit code 1
Configuration
Logs