Skip to content

Commit 7d2f4e2

Browse files
committed
Fix trivy scan version
1 parent 7bac8f5 commit 7d2f4e2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/release-docker.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ on:
44
workflow_call:
55
inputs:
66
context:
7-
description: 'Docker build context directory (e.g., ballerina-interpreter)'
7+
description: "Docker build context directory (e.g., ballerina-interpreter)"
88
required: true
99
type: string
1010
image_name:
11-
description: 'Docker image name without registry prefix (e.g., afm-ballerina-interpreter)'
11+
description: "Docker image name without registry prefix (e.g., afm-ballerina-interpreter)"
1212
required: true
1313
type: string
1414
version:
15-
description: 'Release version (e.g., 0.1.0)'
15+
description: "Release version (e.g., 0.1.0)"
1616
required: true
1717
type: string
1818
branch:
19-
description: 'Branch being released from'
19+
description: "Branch being released from"
2020
required: true
2121
type: string
2222
image_title:
23-
description: 'Human-readable image title for OCI labels (e.g., AFM Ballerina Interpreter)'
23+
description: "Human-readable image title for OCI labels (e.g., AFM Ballerina Interpreter)"
2424
required: true
2525
type: string
2626

@@ -82,17 +82,17 @@ jobs:
8282
index:org.opencontainers.image.licenses=Apache-2.0
8383
8484
- name: Scan Docker image for vulnerabilities
85-
uses: aquasecurity/trivy-action@0.34
85+
uses: aquasecurity/trivy-action@0.34.0
8686
with:
8787
image-ref: ${{ steps.docker-tags.outputs.FULL_IMAGE }}:v${{ inputs.version }}
88-
format: 'sarif'
89-
output: 'trivy-results.sarif'
90-
severity: 'CRITICAL,HIGH'
88+
format: "sarif"
89+
output: "trivy-results.sarif"
90+
severity: "CRITICAL,HIGH"
9191
limit-severities-for-sarif: true
92-
exit-code: '1'
92+
exit-code: "1"
9393

9494
- name: Upload Trivy scan results to GitHub Security tab
9595
uses: github/codeql-action/upload-sarif@v4
9696
if: always()
9797
with:
98-
sarif_file: 'trivy-results.sarif'
98+
sarif_file: "trivy-results.sarif"

0 commit comments

Comments
 (0)