We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7963d1d commit 90b85b4Copy full SHA for 90b85b4
.github/workflows/build.yml
@@ -16,4 +16,19 @@ jobs:
16
fetch-depth: '0'
17
18
- name: Build the Docker image
19
- run: docker build .
+ run: docker build -t docker-netbootxyz:${{ github.sha }} .
20
+
21
+ - name: Run Trivy vulnerability scanner
22
+ uses: aquasecurity/trivy-action@0.28.0
23
+ with:
24
+ image-ref: 'docker-netbootxyz:${{ github.sha }}'
25
+ format: 'table'
26
+ exit-code: '1'
27
+ ignore-unfixed: true
28
+ vuln-type: 'os,library'
29
+ severity: 'CRITICAL,HIGH'
30
31
+ - name: Upload Trivy scan results to GitHub Security tab
32
+ uses: github/codeql-action/upload-sarif@v3
33
34
+ sarif_file: 'trivy-results.sarif'
0 commit comments