Replies: 4 comments 2 replies
-
does the following describe the change you would appreciate? instead of <?xml version="1.0" encoding="UTF-8"?>
<bom xmlns="http://cyclonedx.org/schema/bom/1.4"
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"
version="1">
<components>
<component type="library">
<group>org.acme</group>
<name>card-verifier</name>
<version>1.0.2</version>
<licenses>
<expression>(Apache-2.0 OR MIT)</expression>
</licenses>
</component>
</components>
</bom> the output should look like this: <?xml version="1.0" encoding="UTF-8"?>
<bom xmlns="http://cyclonedx.org/schema/bom/1.4"
serialNumber="urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79"
version="1">
<components>
<component type="library">
<group>org.acme</group>
<name>card-verifier</name>
<version>1.0.2</version>
<licenses>
<license>
<id>Apache-2.0</id>
</license>
<license>
<id>MIT</id>
</license>
</licenses>
</component>
</components>
</bom> |
Beta Was this translation helpful? Give feedback.
-
sounds like a reasonable feature request. are you planning to implement this, or should i mark this as "need help"? |
Beta Was this translation helpful? Give feedback.
-
A consideration is that the license string we are able to get, may not be an SPDX compliant license identifier, which can cause the resultant CycloneDX to be invalid. FYI: @jkowalleck @Jonas-vdb |
Beta Was this translation helpful? Give feedback.
-
discussed the topic with @madpah , and we think we will prefer ad different solution: |
Beta Was this translation helpful? Give feedback.
-
The SBOM of our Python project generated with cyclonedx-python also includes licenses (using environment as source). The license however is added as a SPDX expression which is not supported by Dependency Track (See DependencyTrack/dependency-track#170)
Is there a workaround or option to output the license as SPDX license (https://cyclonedx.org/docs/1.4/xml/#type_licenseType) rather than as a SPDX expression?
If this is not available, does that mean nobody is using the license policy management in Dependency Track for Python projects?
Looking forward to a reply.
Beta Was this translation helpful? Give feedback.
All reactions