2023-07-17 19:32:05 +00:00
|
|
|
when:
|
2023-10-24 12:42:05 +00:00
|
|
|
- event: [pull_request, cron]
|
2023-07-17 19:32:05 +00:00
|
|
|
- event: push
|
2023-07-25 14:29:01 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
2023-11-11 20:35:48 +00:00
|
|
|
- renovate/*
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
variables:
|
2024-10-05 05:14:16 +00:00
|
|
|
- &trivy_plugin docker.io/woodpeckerci/plugin-trivy:1.1.1
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
steps:
|
2024-01-10 14:10:56 +00:00
|
|
|
backend:
|
2023-12-28 15:39:14 +00:00
|
|
|
depends_on: []
|
2023-07-17 19:32:05 +00:00
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
|
|
|
skip-dirs: web/,docs/
|
|
|
|
|
2024-01-10 14:10:56 +00:00
|
|
|
docs:
|
2023-12-28 15:39:14 +00:00
|
|
|
depends_on: []
|
2023-07-17 19:32:05 +00:00
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
|
|
|
skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/
|
2023-10-24 12:42:05 +00:00
|
|
|
dir: docs/
|
2023-07-17 19:32:05 +00:00
|
|
|
|
2024-01-10 14:10:56 +00:00
|
|
|
web:
|
2023-12-28 15:39:14 +00:00
|
|
|
depends_on: []
|
2023-07-17 19:32:05 +00:00
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
|
|
|
skip-dirs: node_modules/
|
2023-10-24 12:42:05 +00:00
|
|
|
dir: web/
|