cyclonedx-cli icon indicating copy to clipboard operation
cyclonedx-cli copied to clipboard

Conversion creates invalid SPDX

Open vargenau opened this issue 2 years ago • 0 comments

hello.spdx.json.txt hello-cyclonedx.json.txt hello-cyclonedx-spdx.json.txt

Convert from SPDX to CycloneDX:

cyclonedx convert --input-file hello.spdx.json --input-format spdxjson --output-file hello-cyclonedx.json --output-format json

Convert the result to SPDX:

cyclonedx convert --input-file hello-cyclonedx.json --input-format json --output-file hello-cyclonedx-spdx.json --output-format spdxjson 

Resulting SPDX is invalid:

pyspdxtools -i hello-cyclonedx-spdx.json 
ERROR:root:The document is invalid. The following issues have been found:
license_info_from_files must be None if files_analyzed is False, but is: [NOASSERTION]

vargenau avatar Oct 05 '23 12:10 vargenau