azure-devops - Azure DevOps - 无法加载源的服务索引
问题描述
我正在运行 Azure DevOps 管道,并收到以下错误。
error: Unable to load the service index for source https://pkgs.dev.azure.com/companyName/_packaging/12345678-1234-1234-1234-1234567890ab/nuget/v3/index.json.
error: Response status code does not indicate success: 403 (Forbidden - User '12345678-1234-1234-1234-1234567890ab' lacks permission to complete this action. You need to have 'ReadPackages'. (DevOps Activity ID: 12345678-1234-1234-1234-1234567890ab)).
我从一个 yaml 看起来像这样的任务中得到错误。
steps:
- task: DotNetCoreCLI@2
displayName: 'Push the created package to Nuget feed. '
inputs:
command: push
publishVstsFeed: '12345678-1234-1234-1234-1234567890ab'
versioningScheme: byPrereleaseNumber
有什么想法要做什么吗?
解决方案
推荐阅读
- linux - 如何在linux中使用disk命令确定开始和结束扇区?
- javascript - 如何使节点画布中图像的大小始终为 128 像素
- python - HTML Parser 删除由 & 分隔的所有字符串(与号)
- javascript - Twitch api 地图功能除了控制台日志之外没有返回任何内容?
- go - Go template post processing: is it possible?
- javascript - 什么是问题类型错误:action.value 未定义?(反应)
- reactjs - 'tailwindcss' 未被识别为内部或外部命令
- asp.net-core - 如何在将端点输出写入响应流之前对其进行转换?
- cookies - 如何从 Laravel 的 $request 中删除 cookie
- ruby-on-rails - 如何在 VSCode 中为 rails 添加环境变量到 launch.json