mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 17:00:30 +00:00
c1a1f7c10b
Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> Co-authored-by: Lauris BH <lauris@nix.lv>
35 lines
719 B
YAML
35 lines
719 B
YAML
when:
|
|
- event: [pull_request, cron]
|
|
- event: push
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
- release/*
|
|
- renovate/*
|
|
|
|
variables:
|
|
- &trivy_image aquasec/trivy:0.46.1
|
|
- &trivy_plugin woodpeckerci/plugin-trivy:1.0.1
|
|
|
|
steps:
|
|
check backend:
|
|
depends_on: []
|
|
image: *trivy_plugin
|
|
settings:
|
|
skip-dirs: web/,docs/
|
|
|
|
check docs:
|
|
depends_on: []
|
|
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:
|
|
depends_on: []
|
|
image: *trivy_plugin
|
|
settings:
|
|
skip-dirs: node_modules/
|
|
dir: web/
|