-
-
Notifications
You must be signed in to change notification settings - Fork 50
feat: metadata.tools
support components
&services
#561
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
Comments
Current state of this library does not support This library is a community effort. |
metadata.tools
support components
&services
related: #597 |
I am working on this feat as time permits. |
I am also working on this. Hope to have something soon. |
CycloneDX spec 1.5 depcreated an array of tools in bom.metadata and instead prefers object with an array of components and an array of services. This PR implements that. Signed-off-by: Joshua Kugler <[email protected]>
CycloneDX spec 1.5 deprecated an array of tools in bom.metadata and instead prefers object with an array of components and an array of services. This PR implements that. This works de-serializing a Syft SBOM with a tool section like so: ``` "metadata": { "timestamp": "2024-06-10T13:06:52-08:00", "tools": { "components": [ { "type": "application", "author": "anchore", "name": "syft", "version": "1.4.1" } ] }, "component": { "bom-ref": "08329a07b4eb8eac", "type": "file", "name": "./" } }, ``` Next up: docs, XML (de)serialization code, and tests. fixes #561 --------- Signed-off-by: Joshua Kugler <[email protected]> Signed-off-by: Jan Kowalleck <[email protected]> Co-authored-by: Jan Kowalleck <[email protected]>
implementation finished |
Hi !
Version cyclonedx-python-lib:6.4.1
Platform: Windows
Python Version: 3.12
Input(s):
For which the code written is:
Expected Output(s):
Actual Output(s):
So far it looks to me the tool class does not support adding components.
https://cyclonedx.org/docs/1.5/json/#metadata_tools_oneOf_i0_components
https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/cyclonedx/model/__init__.py#L1231
Rather it supports the older formats : https://cyclonedx.org/docs/1.5/json/#tab-pane_metadata_tools_oneOf_i1
My code fails at the XMLValidation step as the Tool Class expects the legacy format tags.
Could you please check this issue and get back? Many Thanks!
The text was updated successfully, but these errors were encountered: