【发布时间】:2019-06-11 10:14:33
【问题描述】:
我正在尝试使用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
但它无法显示以下错误。
远程:0000000000aaTF41027:您需要 Git 'GenericContribute' 执行此操作的权限。详细信息:身份 '构建\sdfdfjjkk',范围'存储库'
我已经设置了必要的权限,如下:
并且Allow scripts to access the OAuth token 也已启用,如提到的here
我还需要什么其他权限才能让它工作?
【问题讨论】:
标签: git azure-devops azure-pipelines azure-pipelines-build-task