-
Notifications
You must be signed in to change notification settings - Fork 561
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
raise ghcr unexpected status: 403 Forbidden
when push ghcr image
#687
Comments
same issue are also happend in different developers: |
and and We can only recover this by create a new image. |
OK....Related incidents: https://www.githubstatus.com/incidents/d181frs643d4 |
After incidents is resolved, it worked as expected again. Let me close this issue. |
@crazy-max this issue happened again.... |
Same issue for me.. |
😂I've been tormented by this problem for two days.
|
I'm working on a monorepo and I get the same error for 1 out of 3 identical workflows. Individual re-running the failed job doesn't help either. |
Sorry but we can't do much about it as it's related to GitHub infrastructure. Same as #651. Suggest to contact GitHub. |
For me, relinking package to repo has fixed 403: https://github.com/orgs/community/discussions/26274#discussioncomment-3251137 |
@crazy-max this seems to be happening for https://github.com/MinimalCompact/thumbor as well. More context and repository screenshots here as following the guidance in this issue: MinimalCompact/thumbor#123. Do you have any advice? |
Facing this issue again. Is there no fix for this? |
Same here |
Retry seems to work, but this still should be solved properly. |
same here with |
What seem to solve it for me is adding an explicit permissions section to the workflow yml file: permissions:
contents: read
packages: write Hope this helps someone else out there 😅 |
Thank you very much, It's worked for me |
It's working fine with me, I hope it will work you guys This is my buildx.yaml file (You don't need to change anything): `name: BuildX #This is a basic workflow to help you get started with Action #Controls when the workflow will run #Allows you to run this workflow manually from the Actions tab #A workflow run is made up of one or more jobs that can run sequentially or in parallel
and this is my repository : https://github.com/RamziRebai/CI-CD_with_fastapi_HF_Translator |
None of the aforementioned fixes worked for me. However, what did work was disabling logout from the docker login action as mentioned here, https://news.ycombinator.com/item?id=28607735
It turns out that the issue isn't with GHCR, permissions, etc, it's solely with the action logging us out before the image is pushed. |
Logout is done at post step of the pipeline not between so it should not be the issue you encounter. OTOH if you're using a self-hosted runner, see docker/login-action#173 (comment). |
Troubleshooting
Behaviour
We didn't change any configuration before and after this error happened, same ghcr container image had permisson issue.
Steps to reproduce this issue
Expected behaviour
push successfully
Actual behaviour
Configuration
# paste your YAML workflow file here and remove sensitive data
Logs
https://github.com/Yikun/spark/runs/8221889583?check_suite_focus=true
The text was updated successfully, but these errors were encountered: