gpt4 book ai didi

azure-devops - 用户没有权限完成此操作。您需要具有“AddPackage”

转载 作者:行者123 更新时间:2023-12-04 23:11:55 24 4
gpt4 key购买 nike

我收到一个错误:

User XXX lacks permission to complete this action. You need to have 'AddPackage'


尝试将nuget包推送到Azure DevOps工件时。我是管理员
这是阶段:

  - stage:
displayName: 'Release'
condition: succeeded()
jobs:
- job: 'Publish'
displayName: 'Publish nuGet Package'
steps:
- download: current
artifact: $(PIPELINE_ARTIFACT_NAME)
displayName: 'Download pipeline artifact'
- script: ls $(PATH_PIPELINE_ARTIFACT_NAME)
displayName: 'Display contents of downloaded articacts path'
- task: NuGetAuthenticate@0
displayName: 'Authenticate in NuGet feed'
- script: dotnet nuget push $(PATH_PIPELINE_ARTIFACT_NAME)/**/*.nupkg --source $(NUGET_FEED) --api-key $(NUGET_API_KEY)
displayName: 'Uploads nuGet packages'


以及确切的错误:

error: Response status code does not indicate success: 403 (Forbidden - User '4a2eb786-540d-4690-a12b-013aec2c86e5' lacks permission to complete this action. You need to have 'AddPackage'. (DevOps Activity ID: XXXXXXX-6DF9-4A98-8A4E-42C556C6FC56)).
##[error]Bash exited with code '1'.
Finishing: Uploads nuGet packages


git repo在GitHub中。不知道谁被认为是用户,但我不知道要修改哪些其他权限

最佳答案

似乎我通过将Build Service作为贡献者添加到feed的权限设置中进行了修复。

tbh有点令人困惑,但现在工作正常。

enter image description here

关于azure-devops - 用户没有权限完成此操作。您需要具有“AddPackage”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58780741/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com