From 67a19857eb30c73f1ff80610979215bdd14d1a86 Mon Sep 17 00:00:00 2001 From: Dahyeon Kang <73868703+dusdjhyeon@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:05:19 +0900 Subject: [PATCH] Changing trivy exit code to 1 (#4772) * feat: change exit-code Signed-off-by: dusdjhyeon * chore: Just for build triggers Signed-off-by: dusdjhyeon --------- Signed-off-by: dusdjhyeon --- .github/workflows/build.yml | 8 ++++---- chaoscenter/authentication/Dockerfile | 1 + chaoscenter/event-tracker/Dockerfile | 1 + chaoscenter/graphql/server/Dockerfile | 2 +- chaoscenter/subscriber/Dockerfile | 1 + 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 50e65312aa3..87647008e21 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -150,7 +150,7 @@ jobs: with: image-ref: 'docker.io/litmuschaos/litmusportal-server:${{ github.sha }}' format: 'table' - exit-code: '0' + exit-code: '1' ignore-unfixed: true vuln-type: 'os,library' severity: 'CRITICAL,HIGH' @@ -177,7 +177,7 @@ jobs: with: image-ref: 'docker.io/litmuschaos/litmusportal-auth-server:${{ github.sha }}' format: 'table' - exit-code: '0' + exit-code: '1' ignore-unfixed: true vuln-type: 'os,library' severity: 'CRITICAL,HIGH' @@ -204,7 +204,7 @@ jobs: with: image-ref: 'docker.io/litmuschaos/litmusportal-subscriber:${{ github.sha }}' format: 'table' - exit-code: '0' + exit-code: '1' ignore-unfixed: true vuln-type: 'os,library' severity: 'CRITICAL,HIGH' @@ -261,7 +261,7 @@ jobs: with: image-ref: 'docker.io/litmuschaos/litmusportal-event-tracker:${{ github.sha }}' format: 'table' - exit-code: '0' + exit-code: '1' ignore-unfixed: true vuln-type: 'os,library' severity: 'CRITICAL,HIGH' diff --git a/chaoscenter/authentication/Dockerfile b/chaoscenter/authentication/Dockerfile index a176a4a2d76..fa6db11dab0 100644 --- a/chaoscenter/authentication/Dockerfile +++ b/chaoscenter/authentication/Dockerfile @@ -15,6 +15,7 @@ RUN go env RUN CGO_ENABLED=0 go build -o /output/server -v ./api/ # Packaging stage +# Use RedHat UBI minimal image as base FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4 LABEL maintainer="LitmusChaos" diff --git a/chaoscenter/event-tracker/Dockerfile b/chaoscenter/event-tracker/Dockerfile index 1777dbd6221..b6cee80d97d 100644 --- a/chaoscenter/event-tracker/Dockerfile +++ b/chaoscenter/event-tracker/Dockerfile @@ -16,6 +16,7 @@ RUN go env RUN CGO_ENABLED=0 go build -o /output/event-tracker -v # Packaging stage +# Use RedHat UBI minimal image as base FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4 LABEL maintainer="LitmusChaos" diff --git a/chaoscenter/graphql/server/Dockerfile b/chaoscenter/graphql/server/Dockerfile index 4a31543e36a..7497d22c7e5 100644 --- a/chaoscenter/graphql/server/Dockerfile +++ b/chaoscenter/graphql/server/Dockerfile @@ -15,7 +15,7 @@ ENV GOOS=${TARGETOS} \ RUN go env RUN CGO_ENABLED=0 go build -o /output/server -v -## DEPLOY STAGE +# DEPLOY STAGE # Use Red Hat UBI minimal image as base FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4 diff --git a/chaoscenter/subscriber/Dockerfile b/chaoscenter/subscriber/Dockerfile index 9c20c584d02..17b71c3527a 100644 --- a/chaoscenter/subscriber/Dockerfile +++ b/chaoscenter/subscriber/Dockerfile @@ -16,6 +16,7 @@ RUN go env RUN CGO_ENABLED=0 go build -o /output/subscriber -v # Packaging stage +# Use RedHat UBI minimal image as base FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4 LABEL maintainer="LitmusChaos"