Azure 管道不允许 git push 需要抛出“GenericContribute"权限 [英] Azure pipeline does't allow to git push throwing 'GenericContribute' permission is needed
问题描述
我正在尝试使用 cmd
组件推送在 Azure 管道期间完成的一些更改,如下所示,
步骤:- 脚本: |git config user.email you@you.comgit config user.name "你的名字"混帐差异git 添加.git commit -m "版本更新 [跳过 ci]"git push origin HEAD:master
但它没有显示以下错误.
<块引用>远程:0000000000aaTF41027:您需要 Git 'GenericContribute'执行此操作的权限.详细信息:身份'Buildsdfdfjjkk', 范围 'repository'
我已经按如下方式设置了必要的权限:
并且 允许脚本访问 OAuth 令牌
也已启用,如前所述
I'm trying push some changes done during Azure pipeline using cmd
component as follows,
steps:
- script: |
git config user.email you@you.com
git config user.name "your name"
git diff
git add .
git commit -m "version update [skip ci]"
git push origin HEAD:master
But it fails showing following error.
remote: 0000000000aaTF41027: You need the Git 'GenericContribute' permission to perform this action. Details: identity 'Buildsdfdfjjkk', scope 'repository'
I already set the necessary permission as follows:
And the Allow scripts to access the OAuth token
is also enabled as mentioned here
What other permissions do I need to give this to work?
You need to grant the permissions to Project Collection Build Service (account name):
这篇关于Azure 管道不允许 git push 需要抛出“GenericContribute"权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!