Azure Devops发布到自己的提要突然导致禁止403 [英] Azure Devops publishing to own feed suddenly results in 403 forbidden

查看:177
本文介绍了Azure Devops发布到自己的提要突然导致禁止403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将azure devops用于一个项目已经有一段时间了,但是现在突然发布到我自己的组织/集合供稿中,结果是403.我创建了一个供稿,并且可以在"nuget push"窗口中选择它.构建步骤,但不起作用.我创建了一个新的供稿以发布nuget,并且再次完美运行.在我看来,令牌已用完,但我从未创建过一个令牌或从未使用过它来进行身份验证.我也不想将nuget提要更改为新的提要,因为我也想使用旧的程序包...

I am using azure devops for a project for quite some time but now all of a sudden publishing to my own organisation/collection feed results in a 403. I created a feed and I can select it on the "nuget push" build step but it does not work. I created a new feed to publish the nugets and this works perfectly again. It seems to me like a token ran out but I never created one or used it to authenticate. I also do not want to change my nuget feed to the new one, as I want to use older packages aswell...

这是构建管道:

这是堆栈跟踪:

活动代码页:65001 SYSTEMVSSCONNECTION存在true SYSTEMVSSCONNECTION存在true SYSTEMVSSCONNECTION存在true

Active code page: 65001 SYSTEMVSSCONNECTION exists true SYSTEMVSSCONNECTION exists true SYSTEMVSSCONNECTION exists true

'a831bb9f-aef5-4b63-91cd-4027b16710cf'缺少完成权限 这个动作.你需要 "ReadPackages".","typeName":"Microsoft.VisualStudio.Services.Feed.WebApi.FeedNeedsPermissionsException, Microsoft.VisualStudio.Services.Feed.WebApi","typeKey":"FeedNeedsPermissionsException","errorCode":0,"eventId":3000}} 将NuGet.config保存到临时配置文件.将NuGet.config保存到 临时配置文件. [命令]"C:\ Program Files \ dotnet \ dotnet.exe" nuget push d:\ a \ 1 \ a \ Microwave.0.13.3.2019072215-beta.nupkg-源 https://simonheiss87.pkgs .visualstudio.com/_packaging/5f0802e1-99c5-450f-b02d-6d5f1c946cff/nuget/v3/index.json --api-key VSTS错误:无法加载源

'a831bb9f-aef5-4b63-91cd-4027b16710cf' lacks permission to complete this action. You need to have 'ReadPackages'.","typeName":"Microsoft.VisualStudio.Services.Feed.WebApi.FeedNeedsPermissionsException, Microsoft.VisualStudio.Services.Feed.WebApi","typeKey":"FeedNeedsPermissionsException","errorCode":0,"eventId":3000}} Saving NuGet.config to a temporary config file. Saving NuGet.config to a temporary config file. [command]"C:\Program Files\dotnet\dotnet.exe" nuget push d:\a\1\a\Microwave.0.13.3.2019072215-beta.nupkg --source https://simonheiss87.pkgs.visualstudio.com/_packaging/5f0802e1-99c5-450f-b02d-6d5f1c946cff/nuget/v3/index.json --api-key VSTS error: Unable to load the service index for source https://simonheiss87.pkgs.visualstudio.com/_packaging/5f0802e1-99c5-450f-b02d-6d5f1c946cff/nuget/v3/index.json. error: Response status code does not indicate success: 403 (Forbidden - User 'a831bb9f-aef5-4b63-91cd-4027b16710cf' lacks permission to complete this action. You need to have 'ReadPackages'. (DevOps Activity ID: 2D81C262-96A3-457B-B792-0B73514AAB5E)).

我是否可以忽略要以某种方式对自己进行身份验证的选项?真是太奇怪了...

Is there an option I am overlooking where I have to authenticate myself somehow? It ist just so weird...

推荐答案

消息":用户'a831bb9f-aef5-4b63-91cd-4027b16710cf'缺少 有权完成此操作.您需要拥有"ReadPackages".

"message":"User 'a831bb9f-aef5-4b63-91cd-4027b16710cf' lacks permission to complete this action. You need to have 'ReadPackages'.

根据此错误消息,您收到的由用户(a831bb9f-aef5-4b63-91cd-4027b16710cf)引起的错误没有对您的供稿的访问权限.

According to this error message, the error you received caused by the user(a831bb9f-aef5-4b63-91cd-4027b16710cf) does not have the access permission to your feed.

而且,正如我从后端检查的那样,a831bb9f-aef5-4b63-91cd-4027b16710cf是您的Build Service帐户的 VSID .因此,请尝试将此用户( Micxxxave Build Service(sixxxxss87))添加到目标Feed中,并为该用户分配Feed上 Contributor或更高权限的角色.

And also, as I checked from backend, a831bb9f-aef5-4b63-91cd-4027b16710cf is the VSID of your Build Service account. So, please try with adding this user(Micxxxave Build Service (sixxxxss87)) into your target feed, and assign this user the role of Contributor or higher permissions on the feed.

此外,这里还有

In addition, here has the doc you can refer:

Feed权限中有一个新的UI:

There is a new UI in the Feed Permissions:

这篇关于Azure Devops发布到自己的提要突然导致禁止403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆