Skip to content

Commit 67a1985

Browse files
authored
Changing trivy exit code to 1 (#4772)
* feat: change exit-code Signed-off-by: dusdjhyeon <dusdj0813@gmail.com> * chore: Just for build triggers Signed-off-by: dusdjhyeon <dusdj0813@gmail.com> --------- Signed-off-by: dusdjhyeon <dusdj0813@gmail.com>
1 parent 28bbf3c commit 67a1985

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ jobs:
150150
with:
151151
image-ref: 'docker.io/litmuschaos/litmusportal-server:${{ github.sha }}'
152152
format: 'table'
153-
exit-code: '0'
153+
exit-code: '1'
154154
ignore-unfixed: true
155155
vuln-type: 'os,library'
156156
severity: 'CRITICAL,HIGH'
@@ -177,7 +177,7 @@ jobs:
177177
with:
178178
image-ref: 'docker.io/litmuschaos/litmusportal-auth-server:${{ github.sha }}'
179179
format: 'table'
180-
exit-code: '0'
180+
exit-code: '1'
181181
ignore-unfixed: true
182182
vuln-type: 'os,library'
183183
severity: 'CRITICAL,HIGH'
@@ -204,7 +204,7 @@ jobs:
204204
with:
205205
image-ref: 'docker.io/litmuschaos/litmusportal-subscriber:${{ github.sha }}'
206206
format: 'table'
207-
exit-code: '0'
207+
exit-code: '1'
208208
ignore-unfixed: true
209209
vuln-type: 'os,library'
210210
severity: 'CRITICAL,HIGH'
@@ -261,7 +261,7 @@ jobs:
261261
with:
262262
image-ref: 'docker.io/litmuschaos/litmusportal-event-tracker:${{ github.sha }}'
263263
format: 'table'
264-
exit-code: '0'
264+
exit-code: '1'
265265
ignore-unfixed: true
266266
vuln-type: 'os,library'
267267
severity: 'CRITICAL,HIGH'

chaoscenter/authentication/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ RUN go env
1515
RUN CGO_ENABLED=0 go build -o /output/server -v ./api/
1616

1717
# Packaging stage
18+
# Use RedHat UBI minimal image as base
1819
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
1920

2021
LABEL maintainer="LitmusChaos"

chaoscenter/event-tracker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN go env
1616
RUN CGO_ENABLED=0 go build -o /output/event-tracker -v
1717

1818
# Packaging stage
19+
# Use RedHat UBI minimal image as base
1920
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
2021

2122
LABEL maintainer="LitmusChaos"

chaoscenter/graphql/server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ENV GOOS=${TARGETOS} \
1515
RUN go env
1616
RUN CGO_ENABLED=0 go build -o /output/server -v
1717

18-
## DEPLOY STAGE
18+
# DEPLOY STAGE
1919
# Use Red Hat UBI minimal image as base
2020
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
2121

chaoscenter/subscriber/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN go env
1616
RUN CGO_ENABLED=0 go build -o /output/subscriber -v
1717

1818
# Packaging stage
19+
# Use RedHat UBI minimal image as base
1920
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4
2021

2122
LABEL maintainer="LitmusChaos"

0 commit comments

Comments
 (0)