-
-
Notifications
You must be signed in to change notification settings - Fork 211
proto upgrade #1902
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
proto upgrade #1902
Conversation
.fromJsonString(stringifyIfNeeded(bomJson), { | ||
toBinary( | ||
bomSchema, | ||
fromJsonString(bomSchema, stringifyIfNeeded(bomJson), { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not particularly proud of this snippet, but things do not always directly translate between jsonschema and protobuf correctly. On occasions, there could be bugs in the spec.
@@ -110,7 +110,8 @@ | |||
}, | |||
"optionalDependencies": { | |||
"@appthreat/atom": "2.2.5", | |||
"@appthreat/cdx-proto": "1.0.1", | |||
"@appthreat/cdx-proto": "1.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should create a mono-repo structure and move this library to within cdxgen?
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
d0ae201
to
0fc4d3f
Compare
@@ -58,7 +58,7 @@ | |||
"cdx-verify": "bin/verify.js" | |||
}, | |||
"scripts": { | |||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --inject-globals false lib/managers/docker.test.js lib/helpers/utils.test.js lib/helpers/display.test.js lib/stages/postgen/postgen.test.js lib/evinser/swiftsem.test.js lib/server/server.test.js", | |||
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --inject-globals false lib/managers/docker.test.js lib/helpers/protobom.test.js lib/helpers/utils.test.js lib/helpers/display.test.js lib/stages/postgen/postgen.test.js lib/evinser/swiftsem.test.js lib/server/server.test.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a feeling the protobom.test.js may not work in all os and node combinations. let's find out what works and what doesn't.
Upgraded protobuf dependencies and made proto-related cli arguments public, so people can start using. Attached zip includes the cdxgen BOM is json and .proto format. 410 KB vs 107 KB.
bom.zip
Might need some effort to make things compatible with protobuf libraries in other languages, but its time to try this.