From b527942602c2b097cf06fceb8ab14ef2136f66e2 Mon Sep 17 00:00:00 2001 From: Marcel Feix Date: Mon, 28 Jun 2021 13:04:20 +0200 Subject: [PATCH] feat(Container) use curl instead of wget in maven --- container-scan.yml | 2 +- documentation/chapters/generalInformation.adoc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/container-scan.yml b/container-scan.yml index 3f622fd..f3eacc8 100644 --- a/container-scan.yml +++ b/container-scan.yml @@ -25,7 +25,7 @@ DOCKERFILE_LOCATION: $CI_PROJECT_DIR/Dockerfile CONTEXT_LOCATION: $CI_PROJECT_DIR before_script: - - wget "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" + - curl -L "https://github.com/aquasecurity/trivy/releases/download/v${TRIVY_VERSION}/trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz" --output trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz - tar zxvf trivy_${TRIVY_VERSION}_Linux-64bit.tar.gz script: - /kaniko/executor --context $CONTEXT_LOCATION --dockerfile $DOCKERFILE_LOCATION --cache-dir cache/image --tarPath image.tar --no-push --destination image diff --git a/documentation/chapters/generalInformation.adoc b/documentation/chapters/generalInformation.adoc index 1369924..24fb4c7 100644 --- a/documentation/chapters/generalInformation.adoc +++ b/documentation/chapters/generalInformation.adoc @@ -24,6 +24,7 @@ include: - 'npm-lint-template.yml' - 'npm-test-template.yml' - 'container-publish.yml' + - 'container-scan.yml' - 'set-version-template.yml' - 'sonar-template.yml'