Closed pritidesai closed 2 years ago
Hi, It probably means the the passed user key (-u) has insufficient permission to generate the report. In the current GA version of the tool in order to get the organization name dynamically, "Organization Administrator" permission is mandatory.
I just released version v0.3.9a1 that allows using "Product Administrators" permission (on the product or project you want to generate report on).
To install it: pip install ws-sbom-generator==0.3.9a1
Let me know if this clarifies this.
thank you @tamari-oz I was able to work with the latest version 0.3.9.a1
and generate SBOM with the same configuration and API Key.
The report is produced but I am seeing this kind of warning:
White Source Unified Agent does not exist in path: '/tmp/sdk/wss-unified-agent.jar'
Is this by design and expected to have the agent exist at this location? or will be fixed in future?
Yes. For now you can ignore the error. GA version 0.3.9 is out.
Ran into the same permission issue with 0.3.9
, 0.3.9a1
works fine.
Thanks. Just release GA 0.3.10.
Hey @pritidesai, Please let us know if the issue is solved and can be closed.
Thanks, WhiteSource PS Team
Hi @pritidesai ,
Was this issue solved and the can be closed ?
Thanks, WhiteSource PS Team
@NatalyaDalid @rammatzkvosky I haven't been able to verify. Do you cover this in your internal testing such that its tested well without anyone verifying it manually?
I am happy to reopen this issue if I am still running into it.
/close
Hi @pritidesai , yes it was tested internally. See also Permissions to run the tool section.
Bug Description
ws_sbom_generator
fails with an error message saying user token has insufficient permissions:The API Key provided with has insufficient permissions. I have been able to successfully generate reports until December of last year. Sorry for ambiguity, but has anything changed where its trying to get
-k
is a valid api key but I am seeing error where it says the User TokenorgName
. I am investigating whitesource settings at my end as well. Thanks!