Skip to content

Commit 09fe938

Browse files
adding build
1 parent 1f31d39 commit 09fe938

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,25 @@ jobs:
6161
ignore-unfixed: true
6262
exit-code: 1
6363
# On a subsequent call to the action we know trivy is already installed so can skip this
64-
skip-setup-trivy: true
64+
skip-setup-trivy: true
65+
66+
Build-Trivy:
67+
name: Build
68+
runs-on: ubuntu-20.04
69+
steps:
70+
- name: Checkout source code
71+
uses: actions/checkout@v4
72+
73+
- name: Run Trivy vulnerability scanner in repo mode
74+
uses: aquasecurity/[email protected]
75+
with:
76+
scan-type: 'fs'
77+
ignore-unfixed: true
78+
format: 'sarif'
79+
output: 'trivy-results.sarif'
80+
severity: 'CRITICAL'
81+
82+
- name: Upload Trivy scan results to GitHub Security tab
83+
uses: github/codeql-action/upload-sarif@v3
84+
with:
85+
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)