-
Notifications
You must be signed in to change notification settings - Fork 838
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
Generate SBOM on release #4479
Generate SBOM on release #4479
Conversation
65405f3
to
49624af
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #4479 +/- ##
==========================================
- Coverage 92.55% 92.41% -0.14%
==========================================
Files 315 330 +15
Lines 9375 9520 +145
Branches 2013 2031 +18
==========================================
+ Hits 8677 8798 +121
- Misses 698 722 +24 |
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.
Looks good, thanks 🙂
Notes from the SIG Meeting (Feb 21, 2023):
As discussed in the SIG meeting, once the npm sbom
issue is sorted out, I'd be great to use it instead. For now this is better than not having it 👍
We talked about how npm sbom
does not work for this repo due to it being a monorepo, @martinkuba would you mind adding the link to the issue you opened on NPM for future reference? 🙁
FWIW, I think I was able to get it working with
I am very ignorant about SBOM's however, so I don't know if this is a valid result. |
Ah, interesting. IIRC Martin mentioned that this approach was missing some dependencies. @martinkuba would you mind taking a look if the output has the same issues that you saw when you tested it? |
The ideal output, IMO, would be the following:
This would allow users to only look at SBOM files of packages that they actually use. And since dev dependencies are not installed, there would be no false positives for vulnerabilities or licenses of packages that don't actually get installed. I have tested Here is the issue that I created for NPM CLI: npm/cli#7204 For example, the output of this command is missing the dependency of @opentelemetry/core on @opentelemetry/semantic-conventions (in the relationships section): With that said, I have done some more testing since then and found that the output is fine without the
|
Switching over to use |
I am closing this PR and will open another one that uses |
Which problem is this PR solving?
This adds a Github workflow that generates an SBOM file using the Github dependency graph. SBOMs are useful for users to detect vulnerabilities in packages including their dependencies.
An example SBOM file generated by this workflow is available here.