core/.woodpecker/govulncheck.yml

38 lines
824 B
YAML
Raw Normal View History

2023-12-15 07:16:51 +00:00
when:
- event: [cron]
cron: govulncheck
- event: [pull_request]
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
variables:
- &go_image 'golang:1.22'
2023-12-15 07:16:51 +00:00
steps:
govulncheck:
image: *go_image
pull: true
commands:
- make generate
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
notify:
image: deblan/woodpecker-email
settings:
2024-03-31 08:23:10 +00:00
dsn:
from_secret: email_dsn
2023-12-15 07:16:51 +00:00
from:
2024-03-31 08:23:10 +00:00
address:
from_secret: email_from_address
name: Woodpecker
2023-12-15 07:16:51 +00:00
recipients:
2024-03-31 08:23:10 +00:00
- notifications@twhelp.app
2023-12-15 07:16:51 +00:00
recipients_only: true
subject:
2024-03-31 08:23:10 +00:00
"[govulncheck - {{ pipeline.status }}] {{ repo.full_name }} ({{ commit.branch }} - {{ commit.sha[0:8] }}"
2023-12-15 07:16:51 +00:00
when:
status: [success, failure]
event: cron