woodpecker/.woodpecker/securityscan.yaml

46 lines
894 B
YAML
Raw Normal View History

when:
2023-10-24 12:42:05 +00:00
- event: [pull_request, cron]
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
- renovate/*
variables:
- &trivy_plugin docker.io/woodpeckerci/plugin-trivy:1.2.0
steps:
backend:
depends_on: []
image: *trivy_plugin
settings:
2024-11-05 13:26:27 +00:00
server: server
skip-dirs: web/,docs/
docs:
depends_on: []
image: *trivy_plugin
settings:
2024-11-05 13:26:27 +00:00
server: server
skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/
2023-10-24 12:42:05 +00:00
dir: docs/
web:
depends_on: []
image: *trivy_plugin
settings:
2024-11-05 13:26:27 +00:00
server: server
skip-dirs: node_modules/
2023-10-24 12:42:05 +00:00
dir: web/
2024-11-05 13:26:27 +00:00
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