Skip to content

Unable to push to ghcr.io from Github Actions #26274

Answered by pulsar256
pulsar256 asked this question in Actions
Discussion options

You must be logged in to vote

The Information asking to use the PAT token is outdated. I managed to get it working.

It seems there are mulitple ways how GH will create a package. Depending on which path you take It seems to assign different set of “Action Permissions” to the packge/docker repository when it gets implicitly crated by the first push. This implicit creation of the package/docker repository can be triggered by a manual/remote (PAT) based initial push or by GH Actions using the configured authentication. Results seem to differ.

So to fix this, head over to $yourOrganization → Packages → $yourPackage → Package settings (to the right / bottom)

And configure “Manage Actions access” section to allow the git re…

Replies: 10 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@exchgr
Comment options

@sombriks
Comment options

Answer selected
Comment options

You must be logged in to vote
2 replies
@hohmancodes
Comment options

@Erudition
Comment options

Comment options

You must be logged in to vote
1 reply
@geometrikal
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@hemwaldoh
Comment options

@brendanmosby
Comment options

@o-liver
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@denkasyanov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback