Skip to content
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

Merged
merged 11 commits into from
May 8, 2020
Merged

Pipe cyclonedx sbom to std_out #194

merged 11 commits into from
May 8, 2020

Conversation

ButterB0wl
Copy link
Contributor

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

@ButterB0wl ButterB0wl requested a review from bhamail May 1, 2020 18:20
@ButterB0wl ButterB0wl self-assigned this May 1, 2020
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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this for?

Copy link
Contributor Author

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...

Copy link
Contributor Author

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

Copy link
Contributor Author

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

Copy link
Contributor Author

@ButterB0wl ButterB0wl left a 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...

ajurgenson55 and others added 7 commits May 8, 2020 17:23
@ButterB0wl ButterB0wl merged commit 9bf2ae0 into master May 8, 2020
DarthHater pushed a commit that referenced this pull request May 8, 2020
## [4.0.15](v4.0.14...v4.0.15) (2020-05-08)

### Bug Fixes

* Pipe cyclonedx sbom to std_out ([#194](#194)) ([9bf2ae0](9bf2ae0)), closes [#195](#195)
@DarthHater
Copy link
Member

🎉 This PR is included in version 4.0.15 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants