Open ghost opened 5 months ago
@stevegrossmongodb Does specifying the input format using --input-format spdxjson
help? (The autodetection is not as good as you'd hope for.) If not, are you able to attach the input.json to reproduce it slightly easier?
We finally got it working with these arguments:
cat input_obtained_from_docker_scout | \
<cyclonedx_bin> \
convert \
--output-version 1_5 \
--input-format spdxjson \
--output-format json
I'm trying to convert an spdx BOM (obtained via docker-scout) into a cyclone dx file. However, the generated cyclonedx is ~empty! Here's how to reproduce:
docker-scout sbom --format json quay.io/mongodb/mongodb-community-server:7.0.0-ubi8 > /tmp/input.json
./cyclonedx-linux-arm64 convert --input-file /tmp/input.json --output-file /tmp/foo.json --output-version v1_5
(It should have a whole lot of info in there!)
I'm hoping that I'm just misunderstanding some basic aspect of how to invoke this tool. Any pointers are appreciated!
cc: @trevor159