Skip to content

Commit a1f3c7c

Browse files
fix(docker-build): fix sarif security-report
1 parent d62cb42 commit a1f3c7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ jobs:
8787
uses: aquasecurity/[email protected]
8888
with:
8989
input: vuln-image.tar
90-
format: "table"
90+
format: ${{ (inputs.security-report == 'sarif' && 'sarif') || 'table' }}
9191
ignore-unfixed: true
9292
vuln-type: "os,library"
9393
severity: "CRITICAL,HIGH"
9494
hide-progress: true
95-
output: trivy.txt
95+
output: ${{ (inputs.security-report == 'sarif' && 'trivy-results.sarif') || 'trivy.txt' }}
9696

9797
- name: Read Trivy report file
9898
id: read_trivy

0 commit comments

Comments
 (0)