Skip to content

Commit eb5bd13

Browse files
committed
scans: scan repo with Trivy
1 parent cd38a56 commit eb5bd13

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/scans.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@ jobs:
5252
/action/lib/linter.sh || ( echo "❗ [CT222] Super linter found an issue (possibly Hadolint)" && exit 1 )
5353
echo "✅ [CT222] Hadolint Dockerfile check passed"
5454
55+
- name: Run Trivy vulnerability scanner on repo
56+
uses: aquasecurity/trivy-action@f9424c10c36e288d5fa79bd3dfd1aeb2d6eae808 # master
57+
with:
58+
scan-type: config
59+
scan-ref: .
60+
output: repo_scan_trivy_report.txt
61+
62+
- name: Upload Trivy Report
63+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
64+
with:
65+
path: repo_scan_trivy_report.txt
66+
name: trivy_repo_report
67+
5568
scan_main_container:
5669
runs-on: ubuntu-latest
5770
steps:
@@ -87,7 +100,7 @@ jobs:
87100
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
88101
with:
89102
path: main_container_trivy_report.txt
90-
name: main_container_trivy_report
103+
name: trivy_container_report
91104

92105
scan_x86_64_breakpoint_uefi_edk2_container:
93106
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)