From 1a8e76dc321fe376db30401d8b3b54f922558443 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 7 Feb 2024 22:35:15 +0100 Subject: [PATCH] add trivy in pipeline --- .woodpecker.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 029c761..3866ede 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,7 +2,7 @@ steps: build: image: plugins/kaniko settings: - repo: gitea.hottis.de/wn/udi + repo: ${FORGE_NAME}/${CI_REPO} registry: from_secret: container_registry tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG} @@ -14,6 +14,13 @@ steps: when: - event: [push, tag] + scan_image: + image: aquasec/trivy + commands: + - trivy image $FORGE_NAME/$CI_REPO:$CI_COMMIT_SHA --quiet --exit-code 1 + when: + - event: [push, tag] + deploy: image: portainer/kubectl-shell:latest secrets: