-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass Rancher's VEX report to Trivy to remove known false-positives CV…
…Es (#10956) Signed-off-by: Guilherme Macedo <[email protected]>
- Loading branch information
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,13 +40,19 @@ jobs: | |
make package-image | ||
make tag-image-latest | ||
- name: Download Rancher's VEX Hub report | ||
run: curl -fsSO https://raw.githubusercontent.com/rancher/vexhub/refs/heads/main/reports/rancher.openvex.json | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
with: | ||
image-ref: 'rancher/k3s:latest' | ||
format: 'table' | ||
severity: "HIGH,CRITICAL" | ||
output: "trivy-report.txt" | ||
env: | ||
TRIVY_VEX: rancher.openvex.json | ||
TRIVY_SHOW_SUPPRESSED: true | ||
|
||
- name: Upload Trivy Report | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -93,4 +99,4 @@ jobs: | |
steps: | ||
- name: Report Failure | ||
run: | | ||
gh issue comment ${{ github.event.issue.number }} -b ":x: Trivy scan action failed, check logs :x:" | ||
gh issue comment ${{ github.event.issue.number }} -b ":x: Trivy scan action failed, check logs :x:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters