From ade381edfe1bbf6382e450337bbbdd32c117c9f9 Mon Sep 17 00:00:00 2001 From: Michele Sica <33629436+MicheleSica@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:25:46 +0200 Subject: [PATCH] Update .github-ci.yaml --- .github/workflows/.github-ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/.github-ci.yaml b/.github/workflows/.github-ci.yaml index 26674ac..d96f411 100644 --- a/.github/workflows/.github-ci.yaml +++ b/.github/workflows/.github-ci.yaml @@ -86,8 +86,8 @@ jobs: run: | tag="${docker_image_application}:${docker_image_version}" echo "${{ secrets.CR_PASSWORD }}" | docker login -u "${{ secrets.CR_USERNAME }}" --password-stdin "${{ secrets.CR_REGISTRY }}" - # trivy image --no-progress --exit-code 1 --severity HIGH,CRITICAL,UNKNOWN --format table "${{ secrets.CR_REGISTRY }}/${{ secrets.CR_REPO }}/${tag}" - trivy image --no-progress --exit-code 1 --severity LOW --format table "${{ secrets.CR_REGISTRY }}/${{ secrets.CR_REPO }}/${tag}" + trivy image --no-progress --exit-code 1 --severity HIGH,CRITICAL,UNKNOWN --format table "${{ secrets.CR_REGISTRY }}/${{ secrets.CR_REPO }}/${tag}" + exit code 1 # Step 10: Login Docker Hub