From e7016f0f7c0b50a5218cc8eb5748b2bb2d1c8d69 Mon Sep 17 00:00:00 2001 From: Kumaran Rajendhiran Date: Fri, 23 Feb 2024 15:12:41 +0530 Subject: [PATCH] Skip running trivy (#216) --- 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 .