cdxgen --output
option makes 2 different files including the default bom.json
#1192
Unanswered
Nicolas-Peiffer
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@Nicolas-Peiffer Thank you for the detailed report. cdxgen and evinse are two separate tools. cdxgen generates an SBOM, while evinse uses that sbom and works with atom to attach evidences. The argument You can see the default bom file name used by evinse is Line 66 in 519545f The version Let me know if there is a better approach to improve this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that
cdxgen --output myfilename.json
creates 2 different files, including the defaultbom.json
andmyfilename.json
.Those 2 files are almost identical, except for the
"occurrences":
field inbom.json
, and for the way one file is a prettified JSON and the otherbom.json
is a one line JSON file.How to reproduce
Java env
get a Java Project
Test
cdxgen
I create a script
timed_command.sh
to get start and end datetime.Results:
Notice the 2 files
bom-1.6-cyclonedx-core-java.json
andbom.json
are of different sizes1,1M
and 771K.This is because
bom.json
is a one line JSON file,whereas
bom-1.6-cyclonedx-core-java.json
is pretty printed JSON.Let's prettify the JSON with
jq
:Notice
bom-pretty.json
is bigger thanbom-1.6-cyclonedx-core-java.json
,because of the additional
"occurrences":
fields.Notice also below the
version
field and the timestamp that are different.Beta Was this translation helpful? Give feedback.
All reactions