相关疑难解决方法(0)

Azure 管道不允许 git push 需要抛出“GenericContribute”权限

我正在尝试使用cmd组件推送在 Azure 管道期间完成的一些更改,如下所示,

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
Run Code Online (Sandbox Code Playgroud)

但它无法显示以下错误。

远程:0000000000aaTF41027:您需要 Git 'GenericContribute' 权限才能执行此操作。详细信息:身份'Build\sdfdfjjkk',范围'repository'

我已经设置了必要的权限如下:

在此处输入图片说明

并且Allow scripts to access the OAuth token还启用了此处提到的

我还需要哪些其他权限才能使其工作?

git azure-devops azure-pipelines-build-task azure-pipelines

23
推荐指数
3
解决办法
2万
查看次数