Skip to content
Snippets Groups Projects
Verified Commit 16e32cd5 authored by Virgile Gerecke's avatar Virgile Gerecke :metal:
Browse files

HTML report / ignore-unfixed

parent abb304de
Branches
Tags
1 merge request!1Develop
Pipeline #78333 failed with stages
in 1 minute and 24 seconds
......@@ -13,12 +13,7 @@ scan image:
name: aquasec/trivy
entrypoint: [""]
script:
- trivy --cache-dir .cache \
--exit-code 1 \
--severity HIGH,CRITICAL \
--format table --output report.md \
--vuln-type os \
$CI_PROJECT_PATH_SLUG:$CI_COMMIT_SHORT_SHA
- trivy image --ignore-unfixed --format template --template "@contrib/html.tpl" -o report.html $CONTAINER_TEST_IMAGE
cache:
key: trivy-cache
paths:
......@@ -26,7 +21,7 @@ scan image:
artifacts:
name: "Container Scan Report ${CI_COMMIT_SHA}"
paths:
- report.md
- report.html
expire_in: 7 days
when: on_failure
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment