-
Notifications
You must be signed in to change notification settings - Fork 29
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 and output sbom in GHA #1121
Generate and output sbom in GHA #1121
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1121 +/- ##
============================================
+ Coverage 80.51% 80.60% +0.09%
- Complexity 2871 2914 +43
============================================
Files 393 393
Lines 14554 14630 +76
Branches 1000 1007 +7
============================================
+ Hits 11718 11793 +75
+ Misses 2229 2228 -1
- Partials 607 609 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
e06a561
to
ff536cf
Compare
Signed-off-by: Andre Kurait <[email protected]>
ff536cf
to
3f993d2
Compare
image: migrations/reindex_from_snapshot:latest | ||
artifact-name: opensearch-migrations-reindex-from-snapshot-sbom.spdx.json | ||
- name: Generate SBOM for artifacts | ||
uses: anchore/sbom-action@v0 |
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.
How did you come to pick this GitHub action, looks like it hasn't been fully released yet?
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.
Syft is the industry standard sbom tool that this is running, and is made by it's creators. This was first released in 2021 and has had regular releases since.
If you would prefer, i can manually get the syft binary and run it that way
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.
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.
Lets use v0.X.Y
to lock to a specific rather than just v0
- dependabot can manage these updates.
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.
Updated
Signed-off-by: Andre Kurait <[email protected]>
Description
Use Syft action to generate and output sbom alongside published artifacts.
Added license identifier to created jars.
Issues Resolved
Is this a backport? If so, please add backport PR # and/or commits #
Testing
Tested with GHA, see https://github.com/opensearch-project/opensearch-migrations/actions/runs/11713035148?pr=1121
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.