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}
|
|
|
|
- release/*
|
2023-11-11 20:35:48 +00:00
|
|
|
- renovate/*
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
variables:
|
2023-10-31 08:14:09 +00:00
|
|
|
- &trivy_image aquasec/trivy:0.46.1
|
2023-10-31 12:04:28 +00:00
|
|
|
- &trivy_plugin woodpeckerci/plugin-trivy:1.0.1
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
check 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/
|
|
|
|
|
|
|
|
check 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-08-03 21:46:55 +00:00
|
|
|
when:
|
|
|
|
event: [pull_request, push, cron]
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
check 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/
|