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
|
2023-10-04 09:09:19 +00:00
|
|
|
- &trivy_plugin codeberg.org/woodpecker-plugins/trivy:1.0.0
|
2023-07-17 19:32:05 +00:00
|
|
|
|
|
|
|
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/
|