-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPDX SBOM not compliant to SPDX Scheme 2.2 #1596
Comments
|
@kzantow yes already saw this, but the notes say that the document is compliant to version 2.2 and this is also the version what our tool expects. Edit I changed the title to better reflect this. |
I've added an issue to the |
I've also added a PR to correct the SPDX 2.2 JSON schema. I do not believe Syft should be generating JSON with values that contradict the spec, even if the JSON schema is different. Are there specific tools that are failing and could they be corrected to accept what should be the correct values? |
Also, this is in direct conflict with the issue raised for which I think this change was made: #1236 |
Hey @kzantow, thanks already for working on that one. Specifically we are using our own fork of the ORT (https://github.com/oss-review-toolkit/ort) to scan our code. They are still setting on SPDX 2.2, but I already raised an issue to update the version to 2.3.1. So far nothing happened... |
FYI -- the latest v2.2 JSON schema should be updated to include |
Also FYI you can export an SPDX 2.2 version (which still includes |
Hi @MP91, I'm going to close this issue because I believe you have what you need...but if I am wrong, please let us know! Thanks. |
syft -o [email protected] > sbom2.spdx and syft -o [email protected] > sbom2.spdx they both are still giving me spdx version 2.3 is there any way I can get 2.2 version? |
Hi @ShivamDalmia-eaton, thanks for the report, I have reproduced this and will take a look with the team as soon as we can. (If it's useful, it appears as though |
Thanks @tgerla for the speedy reply my requirement is for a spdx file with 2.2 version if it's there any way to achieve that please do let me know..Thank you |
Hi @ShivamDalmia-eaton; I had a look at why the SPDX Tag-Value version selection was not working and it was a pretty simple fix; I created a PR here: #2665 |
Thanks @kzantow I'll look into it and inform you if it's working or not |
Hi @kzantow "syft -o [email protected] > sbom2.spdx" and "syft image.tar -o [email protected] > sbom2.spdx" is still giving a 2.3 version is the command right? |
@ShivamDalmia-eaton yes, the PR noted above needs to get merged and released to fix it. |
@kzantow thanks for the response if you can do let me know when the PR is reviewed and merged and the Tag-value version is fixed. Thanks |
@ShivamDalmia-eaton this should be fixed in Syft v0.105.1:
... and sorry for the spam on this closed issue to any watchers! |
What happened:
We generated some SBOMs for our project. We need them as input for another tool in the SPDX format.
The tool reports an error because the generated document uses PACKAGE-MANAGER as reference category.
What you expected to happen:
PACKAGE_MANAGER is used
Steps to reproduce the issue:
Generate a SPDX SBOM of Ubuntu
Anything else we need to know?:
Environment:
syft version
: syft-0.72.0cat /etc/os-release
or similar): Ubuntu 22The text was updated successfully, but these errors were encountered: