Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.

Commit 7e44dba

Browse files
fix: trivy action config (#6)
1 parent 79eebc5 commit 7e44dba

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/trivy.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@ jobs:
77
trivy:
88
name: Security check
99
runs-on: ubuntu-latest
10-
env:
11-
IMAGE_NAME: docker.io/pranc1ngpegasus/go-template
1210
steps:
1311
- name: Checkout code
1412
uses: actions/checkout@v3
15-
- name: Build an image from Dockerfile
16-
run: docker build -t ${{ env.IMAGE_NAME }}:${{ github.sha }} .
1713
- name: Run Trivy vulnerability scanner
1814
uses: aquasecurity/trivy-action@master
1915
with:
20-
image-ref: '${{ env.IMAGE_NAME }}:${{ github.sha }}'
16+
scan-type: 'fs'
17+
scan-ref: '.'
2118
format: 'sarif'
2219
output: 'trivy-results.sarif'
2320
- name: Upload Trivy scan results to GitHub Security tab

0 commit comments

Comments
 (0)