You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i installed cycloneDX for my python project, and ran these two commandes to generate the bom:
pip freeze > requirements.txt
cyclonedx-bom -r -i "MYPATH" --format json
it is giving me odd versions and PURLs (see example); and there is no dependency graph.
Hi @redaabdellah21 - thanks for getting involved and reporting this behaviour.
We have an open issue that is also similar to the lack of dependency tree generated by SBOMs in the manner you describe - (#391) as the metadata to understand how dependencies are actually being resolved is not something that is available directly in the metadata guaranteed to be available to this tool.
With regards to the version number challenge you raise, this is very strange, and not something anyone has reported thus far.
To help us triage this further can you please share:
Operating System you are running on (including version)
Hi @madpah thank you for your answer, here is the info you asked for:
OS: windows 10 20H2
python version : 3.10.4
CycloneDX version: cyclonedx-bom 3.5.0
cyclonedx-pyhton-lib 2.7.1
requirements.txt: requirements.txt
when i worked with the installed packages in the environment, it worked fine, but gave more components than those present in the requirements.txt. that is not the best thing to do, a user can be looking at a vulnerability that does not affect his project.
Activity
[-]generating odd versions and PURLs[/-][+]CycloneDX gives odd versions and PURLs[/+]madpah commentedon Aug 2, 2022
Hi @redaabdellah21 - thanks for getting involved and reporting this behaviour.
We have an open issue that is also similar to the lack of dependency tree generated by SBOMs in the manner you describe - (#391) as the metadata to understand how dependencies are actually being resolved is not something that is available directly in the metadata guaranteed to be available to this tool.
With regards to the version number challenge you raise, this is very strange, and not something anyone has reported thus far.
To help us triage this further can you please share:
cyclonedx-pythoninstalledrequirements.txtyou are referencingThanks!
redaabdellah21 commentedon Aug 3, 2022
Hi @madpah thank you for your answer, here is the info you asked for:
OS: windows 10 20H2
python version : 3.10.4
CycloneDX version: cyclonedx-bom 3.5.0
cyclonedx-pyhton-lib 2.7.1
requirements.txt:
requirements.txt
when i worked with the installed packages in the environment, it worked fine, but gave more components than those present in the requirements.txt. that is not the best thing to do, a user can be looking at a vulnerability that does not affect his project.
Thanks again!
jkowalleck commentedon Dec 25, 2023
fixed by #605
jkowalleck commentedon Dec 25, 2023
This feature will be part of the next/upcoming major release.
Changelog: see #605
Install via:
pip install cyclonedx-bom==4.0.0rc1