Add Trivy scanner stage #4
@@ -124,7 +124,7 @@ trivy:
|
|||||||
allow_failure: true
|
allow_failure: true
|
||||||
script:
|
script:
|
||||||
# Build image
|
# Build image
|
||||||
- docker build -t $IMAGE ./Docker/
|
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA ./Docker/
|
||||||
# Build report
|
# Build report
|
||||||
- ./trivy --exit-code 0 --cache-dir .trivycache/ --no-progress --format template --template "@contrib/gitlab.tpl" -o gl-container-scanning-report.json $IMAGE
|
- ./trivy --exit-code 0 --cache-dir .trivycache/ --no-progress --format template --template "@contrib/gitlab.tpl" -o gl-container-scanning-report.json $IMAGE
|
||||||
# Print report
|
# Print report
|
||||||
|
|||||||
Reference in New Issue
Block a user