test(): Testing with Trivy container scanning
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Elia el Lazkani 2023-07-02 23:49:21 +02:00
parent e68cb7d123
commit 8486d82f46

View file

@ -34,9 +34,18 @@ steps:
repo: scm.project42.io/elia/blog repo: scm.project42.io/elia/blog
dry_run: true dry_run: true
squash: true squash: true
purge: false
tags: tags:
- "${DRONE_COMMIT_SHA:0:8}" - "${DRONE_COMMIT_SHA:0:8}"
- name: trivy-scan
image: docker.io/aquasec/trivy:latest
commands:
- trivy image --exit-code 0 "scm.project42.io/elia/blog:${DRONE_COMMIT_SHA:0:8}"
- trivy image --exit-code 1 --severity CRITICAL "scm.project42.io/elia/blog:${DRONE_COMMIT_SHA:0:8}"
depends_on:
- test-build-container
- name: build-container - name: build-container
image: plugins/docker image: plugins/docker
settings: settings: