Dol*_*hin 5 github-actions ghcr
当我尝试将 github 操作构建包推送到 github 容器注册表时,显示如下错误:
#21 pushing layer 71bf85df11bc 0.5s done
#21 pushing layer 2e8dc9c47172 0.5s done
#21 pushing layer cdd7c7392317 0.5s done
#21 ERROR: denied: installation not allowed to Create organization package
------
> pushing ghcr.io/jiangxiaoqiang/rust-musl-builder:beta with docker:
------
ERROR: denied: installation not allowed to Create organization package
Error: buildx call failed with: ERROR: denied: installation not allowed to Create organization package
Run Code Online (Sandbox Code Playgroud)
我现在使用的是个人用户,这仅支持组织吗?我尝试创建一个经典令牌,但是当我添加 GITHUB_TOKEN 时,系统告诉这是 github 维护的系统环境。
我应该怎么做才能解决这个问题?我是否必须将我的项目转移到组织?
Dol*_*hin 12
尝试在 gihub 工作流程中添加权限配置:
build_and_push:
name: Build image & push
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
Run Code Online (Sandbox Code Playgroud)
作品。
| 归档时间: |
|
| 查看次数: |
2372 次 |
| 最近记录: |