-
Why are you starting this discussion?Question What GitHub Actions topic or product is this about?Misc Discussion DetailsHello, I'm encountering a persistent issue with pushing Docker images to GitHub Container Registry (GHCR) from my personal account (sbksba). I also can't see the pushed packages in the GitHub UI, even after successful docker push commands from my local machine. Here's a detailed breakdown of the problem:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
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. Worst case, try pushing once manually with a PAT that has write:packages scope, just to reset the registry link. GHCR can be a bit picky with repo recreations. Once it’s reset clean, the Actions push should work again. |
Beta Was this translation helpful? Give feedback.
-
|
Quickly check this and see 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. Worst case, try pushing once manually with a PAT that has write:packages scope, just to reset the registry link. A bit picky with repo recreations. Once it’s reset clean, the Actions push should work again. |
Beta Was this translation helpful? Give feedback.
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…