-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ci: fix issue SBOM not being triggered 🐛 #3279
Conversation
.github/workflows/build.yml
Outdated
- name: Anchore SBOM Action | ||
uses: anchore/[email protected] | ||
with: | ||
artifact-name: ${{ github.event.repository.name }}-spdx.json |
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 wonder if the asset detection wilkl "work" as such I do think it might be better if we actually output it to the dist
directory and let teh create release
below add it to the assets 🤔
Maybe also setting a bunch of the other options to false as action should not try to upload anything on it 's own now that we have it as part of the release
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.
Hi @mstoykov, I've just updated the Anchore SBOM Action to add the SBOM output to dist
directory in my latest commit. It then be processed by the create release
step to add to the release assets.
Also, the upload-artifact
field should be true (the default value) in order to store the output file to the dist
directory. I tested it on my repo by changing upload-artifact
to false
then we will not be able to retrieve the output file.
And the upload-release-assets
can be false because we have our own release assets management process
Ref: https://github.com/anchore/sbom-action
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.
Can we get the "continue-on-error:true" set.This seems way better for this step, it was added 2 releases ago and the only reason why we are actually fixing it is because we noticed. Nobody actually came to tell us it isn't working :)
Codecov Report
@@ Coverage Diff @@
## master #3279 +/- ##
==========================================
- Coverage 73.19% 73.13% -0.07%
==========================================
Files 258 256 -2
Lines 19884 19879 -5
==========================================
- Hits 14555 14538 -17
- Misses 4405 4412 +7
- Partials 924 929 +5
Flags with carried forward coverage won't be shown. Click here to find out more. |
Sure! I added that flag on the latest commit. Please review again. Thanks! |
What?
Follow analysis provided in #3273
Putting the SBOM generation as part of the release process:
Anchore SBOM Action
as part of publish-github stage.github/workflows/sbom-report.yml
Why?
Initially SOM was added in #3089 and tried to be fixed in #3254 - the sbom github action did not trigger for the v0.46.0 release.
Checklist
make ci-like-lint
) and all checks pass.make tests
) and all tests pass.Related PR(s)/Issue(s)
Closes: #3273