2023-07-17 21:32:05 +02:00
|
|
|
when:
|
|
|
|
- event: [ pull_request, cron ]
|
|
|
|
- event: push
|
2023-07-25 16:29:01 +02:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
- release/*
|
2023-07-17 21:32:05 +02:00
|
|
|
|
|
|
|
variables:
|
|
|
|
- &trivy_image aquasec/trivy:latest
|
|
|
|
- &trivy_plugin codeberg.org/woodpecker-plugins/trivy:latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
check backend:
|
|
|
|
group: check
|
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
|
|
|
skip-dirs: web/,docs/
|
|
|
|
|
|
|
|
check docs:
|
|
|
|
group: check
|
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
|
|
|
skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/
|
|
|
|
dir: docs/
|
2023-08-03 23:46:55 +02:00
|
|
|
when:
|
|
|
|
event: [pull_request, push, cron]
|
|
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
2023-07-17 21:32:05 +02:00
|
|
|
|
|
|
|
check web:
|
|
|
|
group: check
|
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
|
|
|
skip-dirs: node_modules/
|
|
|
|
dir: web/
|