Skip to content

Commit d0e63be

Browse files
authored
Merge pull request #56 from IBM/fix-trivy
Change exit code for trivy to 0
2 parents 5f79788 + 2c46adc commit d0e63be

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.github
12
docker-compose.yml
23
podman-compose-sonarqube.yaml
34

.github/workflows/docker-image.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# • Lints the Dockerfile with **Hadolint** (CLI) → SARIF
99
# • Lints the finished image with **Dockle** (CLI) → SARIF
1010
# • Generates an SPDX SBOM with **Syft**
11-
# • Scans the image for CRITICAL/HIGH CVEs with **Trivy**
11+
# • Scans the image for CRITICAL CVEs with **Trivy**
1212
# • Uploads Hadolint, Dockle and Trivy results as SARIF files
1313
# • Pushes the image to **GitHub Container Registry (GHCR)**
1414
# • Signs & attests the image with **Cosign (key-less OIDC)**
@@ -152,8 +152,8 @@ jobs:
152152
image-ref: ${{ env.IMAGE_NAME }}:latest
153153
format: sarif
154154
output: trivy-results.sarif
155-
severity: CRITICAL,HIGH
156-
exit-code: 1
155+
severity: CRITICAL
156+
exit-code: 0
157157
- name: ☁️ Upload Trivy SARIF
158158
if: always()
159159
uses: github/codeql-action/upload-sarif@v3

0 commit comments

Comments
 (0)