Skip to content

Commit 264d105

Browse files
committed
fix: correct Trivy security scan configuration
- Add explicit scan-type: 'image' parameter to Trivy action - This fixes the 'could not parse reference: .' error - Ensures security scan targets the built Docker image instead of filesystem
1 parent 01a0970 commit 264d105

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ jobs:
233233
- name: Run Trivy vulnerability scanner
234234
uses: aquasecurity/trivy-action@master
235235
with:
236+
scan-type: 'image'
236237
image-ref: ${{ needs.docker-build-and-push.outputs.image-tag }}
237238
format: 'sarif'
238239
output: 'trivy-results.sarif'

0 commit comments

Comments
 (0)