woodpecker/.woodpecker/securityscan.yml

38 lines
725 B
YAML
Raw Normal View History

version: 1
when:
2023-10-24 12:42:05 +00:00
- 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:
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/
2023-10-24 12:42:05 +00:00
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/
2023-10-24 12:42:05 +00:00
dir: web/