-
Notifications
You must be signed in to change notification settings - Fork 53
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
Pipe cyclonedx sbom to std_out #194
Conversation
…n be picked up by other scanners
…irp -> [email protected] to [email protected] due to a security vuln failing our dogfood scan
package.json
Outdated
@@ -91,6 +91,7 @@ | |||
"node-fetch": "^2.6.0", | |||
"node-persist": "^3.0.5", | |||
"ora": "^4.0.3", | |||
"package-lock.json": "^1.0.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.
What is this for?
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 did pin the minimist transitive dependency but idk if that's related...
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.
yeah i removed it and it brought minimist back in
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.
https://www.npmjs.com/package/package-lock
looks like it lets you build from the package-lock and i had to use it to pin the dependency
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.
and somehow this brought it back...
…Command already had it as false so it didn't change IQ scan times. Might be worth stripping everything but the purls to keep it standard with the boms of the other tools
…tions are going to differ locally
🎉 This PR is included in version 4.0.15 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Adding the 'sbom' subcommand to pipe the CycloneDx bom that gets submitted to IQ to std_out so that we can generate a portable bom file that can be ingested by scanners and IQ servers disconnected from the build environment.
This command will be standard for all the Sonatype DevEx scanners that generate a CycloneDx bom
Tested successfully with no internet connection on a built project
Are there any arguments to the sbom command that we want to make standard? Should we allow the DevEx scanners to append to existing sboms? That would be a little harder but it covers the use case of an app with multiple ecosystems in it. Should we allow AuditJS to submit a bom to IQ directly without resolving the dependencies?
I think first step for MVP is to just output to the console for each tool and they can do whatever with that, but I would like to define a standard way of handling these exported reports across our tooling
cc @bhamail / @DarthHater / @allenhsieh / @ken-duck