Cha*_*nna 23 git azure-devops azure-pipelines-build-task azure-pipelines
我正在尝试使用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还启用了此处提到的
我还需要哪些其他权限才能使其工作?
Las*_*tha 106
如果您在构建中遇到以下错误...
\n\n\nTF401027: 您需要 Git \xe2\x80\x98GenericContribute\xe2\x80\x99 权限才能执行\n此操作。详情:身份
\n
...然后,修复它:
\nMer*_*SFT 14
应该是你的账号没有这个仓库的贡献权限造成的。
围棋项目设置- >库- >点击回购要操作- >设置相应的权限库。