VDR Generated by Library doesn't pass validation #659
Replies: 3 comments
-
this library provides validation capabilities. cyclonedx-python-lib/examples/complex_serialize.py Lines 85 to 93 in 83b54aa see the needed extra: https://cyclonedx-python-library.readthedocs.io/en/latest/install.html#extras |
Beta Was this translation helpful? Give feedback.
-
if i am not mistaken, then you are using the library wrong. you might use a Static code analysis tool (like
|
Beta Was this translation helpful? Give feedback.
-
Thanks for these tips, I was able to use mypy and the validation library and now the sbom we produce passes the validations. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I use this library to generate a Vulnerability Disclosure Report for Adoptium Temurin (OpenJDK Build): https://github.com/adoptium/temurin-vdr-generator/blob/main/cvereporter/report.py
As an example, see https://github.com/adoptium/temurin-vdr-generator/actions/runs/9914996771
However, it doesn't pass validation on https://cyclonedx.github.io/cyclonedx-web-tool/convert which I'm guessing is powered by https://github.com/CycloneDX/sbom-utility
It would be nice if the library could somehow prevent me from generating an invalid sbom.
Errors from running the utility locally include:
Beta Was this translation helpful? Give feedback.
All reactions