From c8bda9292823f08899ebc7b877d6f767d3c33d0b Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Fri, 23 Feb 2024 14:58:52 +0530 Subject: [PATCH] Skip running trivy --- docker/build_docker.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docker/build_docker.sh b/docker/build_docker.sh index c6ecbd3a..00af1ca5 100755 --- a/docker/build_docker.sh +++ b/docker/build_docker.sh @@ -17,7 +17,5 @@ export PYTHON=3.11 echo Building $CI_REGISTRY_IMAGE, with tag: $TAG docker build --build-arg BASE=$BASE --build-arg PYTHON=$PYTHON \ - -t $CI_REGISTRY_IMAGE:$TAG . \ - && trivy image --skip-files /usr/local/bin/git-secrets --no-progress --timeout 10m -s CRITICAL,HIGH $CI_REGISTRY_IMAGE:$TAG \ - && trivy image --skip-files /usr/local/bin/git-secrets --no-progress --timeout 10m --exit-code 1 --ignore-unfixed $CI_REGISTRY_IMAGE:$TAG + -t $CI_REGISTRY_IMAGE:$TAG .