ci: add dependency hygiene checks

This commit is contained in:
Peter Steinberger 2026-03-08 00:48:53 +00:00
parent e0e487fbd0
commit cf19999870
2 changed files with 35 additions and 0 deletions

13
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10

View File

@ -93,6 +93,28 @@ jobs:
- name: Build
run: go build ./cmd/discrawl
deps:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v6.0.2
- name: Setup Go
uses: actions/setup-go@v6.3.0
with:
go-version-file: go.mod
cache: true
- name: Verify module cache
run: go mod verify
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4
- name: Run govulncheck
run: "$(go env GOPATH)/bin/govulncheck" ./...
secrets:
runs-on: ubuntu-latest
timeout-minutes: 15