Loading

git push 报错:refusing to allow a Personal Access Token to create or update workflow ...

报错:

[root@host8c openyurt]# git push -f origin yurtadm:yurtadm
Username for 'https://github.com': xxx@qq.com
Password for 'https://2352661414@qq.com@github.com': 
Counting objects: 66, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (25/25), done.
Writing objects: 100% (38/38), 10.74 KiB | 0 bytes/s, done.
Total 38 (delta 18), reused 24 (delta 5)
remote: Resolving deltas: 100% (18/18), completed with 16 local objects.
To https://github.com/windydayc/openyurt.git
 ! [remote rejected] yurtadm -> yurtadm (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/ci.yaml` without `workflow` sco
pe)
error: failed to push some refs to 'https://github.com/windydayc/openyurt.git'

原因:

当前密码输入的 Github Personal access tokens 没有相关权限。

解决方法:

新创建一个具有workflow权限的 Github Personal access tokens:
image

转载自:github - refusing to allow a Personal Access Token to create or update workflow - Stack Overflow

posted @ 2022-07-21 00:03  拾月凄辰  阅读(680)  评论(0编辑  收藏  举报