本站在允许 JavaScript 运行的环境下浏览效果更佳


解决 github action push to ghcr '403 Forbidden' error

现象

github action 对应 workflow

解决github-action-push-to-ghcr-403error-github-action部分.png

运行时报错

解决github-action-push-to-ghcr-403error-现象.png

解决方法

之前构建的时候一切顺利,在笔者要写教程的时候重新拉取仓库然后构建,就会反复报403错误
翻了半天终于找到了这个解决方案

原讨论链接:Random 403 errors when pushing to GHCR · Issue #463 · docker/build-push-action (github.com)

https://github.com/orgs/[XXX]/packages/container/[YYY]/settings
按照上面的地址,把[xxx]换成你的用户名,[YYY]换成项目名

比如笔者fork之后,仓库是HowieHz/umami,
那笔者就进入https://github.com/orgs/HowieHz/packages/container/umami/settings

解决-umami-api延迟问题-解决action403问题-2.png

再按照onedr0p图片中标记的,先Add Repository,把你仓库加上,然后把规则选为Write或者Admin

即可解决问题

相关文章阅读

解决 docker pull image "ghcr.io..." Unauthorized error

为了便于检索,将此文章和上方链接对应的文章从下面这篇文章中摘录出来

解决umami active api延迟问题