-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add trivy scanning to PR reports #10758
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #10758 +/- ##
===========================================
- Coverage 49.59% 36.43% -13.16%
===========================================
Files 178 161 -17
Lines 14753 14262 -491
===========================================
- Hits 7317 5197 -2120
- Misses 6091 8036 +1945
+ Partials 1345 1029 -316
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Derek Nola <[email protected]>
run: | | ||
echo '```' | cat - trivy-report.txt > temp && mv temp trivy-report.txt | ||
echo '```' >> trivy-report.txt | ||
gh issue comment ${{ github.event.issue.number }} --edit-last -F trivy-report.txt |
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.
just out of curiosity - does this edit the last comment by the current user, or the last comment on the issue?
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.
It edits the last comment made by the user on that issue, in this case the user is the "github-actions bot"
Does this cover the entire airgap bundle or just the binary? There are generally more findings in the packaged images than k3s itself |
Just binaries built by or included in this repo. Basically anything in the rancher/k3s image. Scanning the mirrored images is handled elsewhere. |
Signed-off-by: Derek Nola <[email protected]> (cherry picked from commit fa6940d) Signed-off-by: Brad Davidson <[email protected]>
Signed-off-by: Derek Nola <[email protected]> (cherry picked from commit fa6940d) Signed-off-by: Brad Davidson <[email protected]>
Signed-off-by: Derek Nola <[email protected]> (cherry picked from commit fa6940d) Signed-off-by: Brad Davidson <[email protected]>
Signed-off-by: Derek Nola <[email protected]> (cherry picked from commit fa6940d) Signed-off-by: Brad Davidson <[email protected]>
Signed-off-by: Derek Nola <[email protected]> (cherry picked from commit fa6940d) Signed-off-by: Brad Davidson <[email protected]>
Signed-off-by: Derek Nola <[email protected]> (cherry picked from commit fa6940d) Signed-off-by: Brad Davidson <[email protected]>
Signed-off-by: Derek Nola <[email protected]> (cherry picked from commit fa6940d) Signed-off-by: Brad Davidson <[email protected]>
Signed-off-by: Derek Nola <[email protected]> (cherry picked from commit fa6940d) Signed-off-by: Brad Davidson <[email protected]>
Signed-off-by: Derek Nola <[email protected]>
Proposed Changes
Once this is merged, it allows user to comment
/trivy
on a PR to trigger a build of K3s and a trivy reportThe report is run on an internal GHA
And eventually, the comment edited and replaced with the report
Types of Changes
CI
Verification
Verified on dereknola#25
Testing
N/A
Linked Issues
#10759
User-Facing Change
Further Comments