mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-28 19:30:30 +00:00
1bc4415075
Closes #1834 --------- Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Anbraten <anton@ju60.de> Co-authored-by: Lauris BH <lauris@nix.lv>
36 lines
706 B
YAML
36 lines
706 B
YAML
version: 1
|
|
|
|
when:
|
|
- event: [pull_request, cron]
|
|
- event: push
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
- release/*
|
|
|
|
variables:
|
|
- &trivy_image aquasec/trivy:0.46.1
|
|
- &trivy_plugin woodpeckerci/plugin-trivy:1.0.1
|
|
|
|
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/
|
|
when:
|
|
event: [pull_request, push, cron]
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
|
|
check web:
|
|
group: check
|
|
image: *trivy_plugin
|
|
settings:
|
|
skip-dirs: node_modules/
|
|
dir: web/
|