2023-07-17 19:32:05 +00:00
|
|
|
when:
|
|
|
|
- event: [ pull_request, cron ]
|
|
|
|
- event: push
|
2023-07-25 14:29:01 +00:00
|
|
|
branch:
|
|
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
- release/*
|
2023-07-17 19:32:05 +00: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 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:
|
|
|
|
group: check
|
|
|
|
image: *trivy_plugin
|
|
|
|
settings:
|
|
|
|
skip-dirs: node_modules/
|
|
|
|
dir: web/
|