mirror of
https://github.com/harvester/vm-import-controller.git
synced 2025-06-03 01:44:51 +00:00
ci: Add Rancher's VEX Hub reports (#76)
Signed-off-by: Volker Theile <vtheile@suse.com>
This commit is contained in:
parent
6780c8318d
commit
f5a94173e8
10
.github/workflows/scan.yml
vendored
10
.github/workflows/scan.yml
vendored
@ -12,7 +12,10 @@ jobs:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- 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 in repo mode
|
||||
uses: aquasecurity/trivy-action@master
|
||||
@ -22,8 +25,11 @@ jobs:
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
severity: 'CRITICAL,HIGH,MEDIUM'
|
||||
env:
|
||||
TRIVY_VEX: rancher.openvex.json
|
||||
TRIVY_SHOW_SUPPRESSED: true
|
||||
|
||||
- name: Upload Trivy scan results to GitHub Security tab
|
||||
uses: github/codeql-action/upload-sarif@v2
|
||||
uses: github/codeql-action/upload-sarif@v3
|
||||
with:
|
||||
sarif_file: 'trivy-results.sarif'
|
||||
|
Loading…
Reference in New Issue
Block a user