Update container-scan.gitlab-ci.yml

This commit is contained in:
Marcel Feix 2022-05-11 06:57:13 +00:00
parent f7649b4835
commit 1312460eb9
No known key found for this signature in database
GPG Key ID: 04D016E104A25F03

View File

@ -1,6 +1,6 @@
.container-scan-trivy: .container-scan-trivy:
image: image:
name: docker.io/aquasec/trivy:0.25.0 name: docker.io/aquasec/trivy:0.27.1
entrypoint: [ "" ] entrypoint: [ "" ]
stage: verify stage: verify
variables: variables:
@ -16,4 +16,4 @@
script: script:
# Builds report and puts it in the default workdir $CI_PROJECT_DIR, so artifacts: can take it from there # Builds report and puts it in the default workdir $CI_PROJECT_DIR, so artifacts: can take it from there
- trivy --cache-dir .trivycache/ image --timeout 15m $TRIVY_EXTRA_ARGS --exit-code 0 --format template --template "/contrib/junit.tpl" -o junit-report.xml - trivy --cache-dir .trivycache/ image --timeout 15m $TRIVY_EXTRA_ARGS --exit-code 0 --format template --template "/contrib/junit.tpl" -o junit-report.xml
- trivy --cache-dir .trivycache/ image --timeout 15m $TRIVY_EXTRA_ARGS --exit-code $EXITCODE - trivy --cache-dir .trivycache/ image --timeout 15m $TRIVY_EXTRA_ARGS --exit-code $EXITCODE