Skip to content

Commit bb0b24e

Browse files
Update trivy.yml
1 parent bd86684 commit bb0b24e

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/trivy.yml

+5-10
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,13 @@ jobs:
2828
- name: Checkout code
2929
uses: actions/checkout@v3
3030

31-
- name: Build an image from Dockerfile
32-
run: |
33-
docker build -t docker.io/my-organization/my-app:${{ github.sha }} .
34-
35-
- name: Run Trivy vulnerability scanner
36-
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
31+
- name: Run Trivy vulnerability scanner in fs mode
32+
uses: aquasecurity/trivy-action@master
3733
with:
38-
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}'
39-
format: 'template'
40-
template: '@/contrib/sarif.tpl'
34+
scan-type: 'fs'
35+
scan-ref: '.'
4136
output: 'trivy-results.sarif'
42-
severity: 'CRITICAL,HIGH'
37+
template: '@/contrib/sarif.tpl'
4338

4439
- name: Upload Trivy scan results to GitHub Security tab
4540
uses: github/codeql-action/upload-sarif@v2

0 commit comments

Comments
 (0)