【blackduck】 Request failed authorization [HTTP Error]: XXX, response was 403 Forbidden.

问题:

15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- Failed to upload code location: xxx/bom
15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- Reason: Request failed authorization [HTTP Error]: There was a problem trying to POST https://xxx.com/api/scan/data/, response was 403 Forbidden.
15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- An error occurred uploading a bdio file.
15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- There was a problem: An error occurred uploading a bdio file.
15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- Detect run failed: There was a problem:  An error occurred uploading a bdio file.
15:03:23 2022-02-14 15:03:23 CST ERROR [main] --- There was a problem:  An error occurred uploading a bdio file.

ROOT CAUSE

The project-owner is not a role in Blackduck, but an external reference to a project.

问题解决方案:

SOLUTION:

  • Found that this is due to the user/project roles assigned to the user.
  • User had Project Code Scanner assigned under the specific project but this role does not allow you to create new projects (only project versions).
  • User must have Global Code Scanner assigned in order to create new projects within Black Duck while scanning.

OR

  • User can have Project Creator role assigned but needs to be assigned to the specific project in order to run scans against the new project.

OR
       Ensure if user is already part of a group that has the correct above persmissions they are not running the following property as will also give 403 , because group already exists:  ' detect.project.user.groups=blackduck.xxxx ' - Removing property will allow scan to run. 

OR

To upload the scans using Detect, Global Code Scanner role (global scope) or Project Code Scanner role (project scope) needed to be set to the user, from who the token was generated and used in Detect CLI.

Please refer to the attached screenshot and role matrix doc part in Blackduck user guide (/doc/Welcome.htm#users_and_groups/rolematrix.htm)

NOTE:
Please ensure the user is the BOM manager of the project this will also prevent failure. 

Product

Black Duck/Black Duck Hub

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值