GitHub Runner错误>>fatal:无法访问'GithubRepoUrl,git ':请求的URL返回错误:403

nvbavucw  于 2023-04-28  发布在  Git
关注(0)|答案(1)|浏览(120)

我在尝试创建我的贡献蛇网格时遇到了一个问题,但我的工作流程没有通过,所以我决定分享对我有效的解决方案。下面是错误的样子;

Run ad-m/github-push-action@master
  with:
    github_token: ***
    branch: main
    force: true
    github_url: https://github.com
    directory: .
Push to branch main
remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/KrAsH-CoD3/cont-snake-grid.git/': The requested URL returned error: 403
Error: Invalid exit code: 128
    at ChildProcess.<anonymous> (/home/runner/work/_actions/ad-m/github-push-action/master/start.js:29:21)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
  code: 128
}
Error: Invalid exit code: 128
    at ChildProcess.<anonymous> (/home/runner/work/_actions/ad-m/github-push-action/master/start.js:29:21)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
mhd8tkvw

mhd8tkvw1#

错误403(No Permission Access)为了解决这个问题
1.导航到存储库设置
1.点击“操作”下拉菜单
1.然后是“将军”
1.向下滚动一点,直到看到“工作流权限”
1.它可能位于“读取存储库内容和包权限”上
1.点击“读写权限”
1.向下滚动并保存。

相关问题