Skip to content

Commit cf19999

Browse files
committed
ci: add dependency hygiene checks
1 parent e0e487f commit cf19999

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "weekly"
13+
open-pull-requests-limit: 10

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,28 @@ jobs:
9393
- name: Build
9494
run: go build ./cmd/discrawl
9595

96+
deps:
97+
runs-on: ubuntu-latest
98+
timeout-minutes: 15
99+
steps:
100+
- name: Checkout
101+
uses: actions/checkout@v6.0.2
102+
103+
- name: Setup Go
104+
uses: actions/setup-go@v6.3.0
105+
with:
106+
go-version-file: go.mod
107+
cache: true
108+
109+
- name: Verify module cache
110+
run: go mod verify
111+
112+
- name: Install govulncheck
113+
run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4
114+
115+
- name: Run govulncheck
116+
run: "$(go env GOPATH)/bin/govulncheck" ./...
117+
96118
secrets:
97119
runs-on: ubuntu-latest
98120
timeout-minutes: 15

0 commit comments

Comments
 (0)