From 08cdfbde94e8c261ad78589d673aebddc4c7a331 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Tue, 5 Nov 2024 14:26:27 +0100 Subject: [PATCH] Start a trivy server service (#4288) --- .woodpecker/securityscan.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.woodpecker/securityscan.yaml b/.woodpecker/securityscan.yaml index c7e693d2d..919ed4f4f 100644 --- a/.woodpecker/securityscan.yaml +++ b/.woodpecker/securityscan.yaml @@ -13,12 +13,14 @@ steps: depends_on: [] image: *trivy_plugin settings: + server: server skip-dirs: web/,docs/ docs: depends_on: [] image: *trivy_plugin settings: + server: server skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/ dir: docs/ @@ -26,5 +28,18 @@ steps: depends_on: [] image: *trivy_plugin settings: + server: server skip-dirs: node_modules/ dir: web/ + +services: + server: + image: *trivy_plugin + # settings: + # service: true + # db-repository: docker.io/aquasec/trivy-db:2 + environment: + PLUGIN_SERVICE: 'true' + PLUGIN_DB_REPOSITORY: 'docker.io/aquasec/trivy-db:2' + ports: + - 10000