How do I set the build authorization scope for my project?

前端 未结 4 867
囚心锁ツ
囚心锁ツ 2021-01-20 14:50

Right now my NuGet restore fails since the project build user doesn\'t have contributor access to the package feed.

/usr/share/dotnet/sdk/3.0.100/NuGe

4条回答
  •  情话喂你
    2021-01-20 15:16

    There was a workaround for this 403 error posted a few hours ago: https://developercommunity.visualstudio.com/content/problem/795493/403-error-during-nuget-restore.html

    In short, this seems to affect new projects connecting to a private feed. Here's the suggested work around:

    1. Click "Artifacts" in the project with the failing build

    2. Select the feed you were trying to consume in your build and click the cog in the top right corner

    3. Click "Feed Settings"

    4. Go to the Permissions tab

    5. Click the 3 dots [...] that appeared to the right of the tab

    6. Click "Allow project-scoped builds"

    This adds the relevant user permissions that the error the OP posted was complaining about. Hopefully Microsoft will make a proper fix for this soon.

    Full credit to Tim Lynch from the developer community page.

提交回复
热议问题