Skip to content
Discussion options

You must be logged in to vote

Howdy, sounds like GHCR's trippin' after you nuked and re-created the repo.

Even if the repo name’s the same, GHCR sees it as a fresh one — so the old package permissions probably don’t line up anymore. That permission_denied: write_package error usually means your GitHub Actions token doesn’t have rights to push to GHCR for that new repo.

Quick checks:

Make sure your workflow has permissions: packages: write and contents: read at the top.

If you're using GITHUB_TOKEN, remember it's scoped per repo — so if the package still exists from before, GHCR might be blocking access.

Try deleting the old package manually from https://github.com/users/sbksba/packages if it’s still hangin’ around.

Wo…

Replies: 2 comments 1 reply

Comment options

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

Answer selected by sbksba
Comment options

You must be logged in to vote
0 replies
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 Question Ask and answer questions about GitHub features and usage Misc General discussions about GitHub Actions that don't fit other found themes.
3 participants