Skip to content

Commit 7970a40

Browse files
authored
chore: add govulncheck (#182)
1 parent 6bf0c56 commit 7970a40

File tree

4 files changed

+37
-3
lines changed

4 files changed

+37
-3
lines changed

.github/workflows/govulncheck.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
pull_request:
6+
schedule: # daily at 04:00 UTC
7+
- cron: '0 4 * * *'
8+
9+
permissions:
10+
contents: read
11+
12+
name: govulncheck
13+
jobs:
14+
govulncheck:
15+
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v6
20+
21+
- name: Install Go
22+
id: install-go
23+
uses: actions/setup-go@v6
24+
with:
25+
go-version-file: go.mod
26+
27+
- name: Run govalncheck
28+
run: |
29+
go run golang.org/x/vuln/cmd/govulncheck@latest ./...

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
uses: actions/setup-go@v6
2424
with:
2525
go-version: ${{ matrix.go-version }}
26+
check-latest: true
2627

2728
- name: Download dependencies
2829
run: go mod download

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/hamba/statter/v2
22

3-
go 1.25.1
3+
go 1.25.7
44

55
require (
6-
github.com/VictoriaMetrics/metrics v1.41.1
6+
github.com/VictoriaMetrics/metrics v1.41.2
77
github.com/cactus/go-statsd-client/v5 v5.1.0
88
github.com/go4org/hashtriemap v0.0.0-20251130024219-545ba229f689
99
github.com/hamba/logger/v2 v2.9.0
@@ -28,7 +28,7 @@ require (
2828
go.opentelemetry.io/otel v1.38.0 // indirect
2929
go.opentelemetry.io/otel/trace v1.38.0 // indirect
3030
go.yaml.in/yaml/v2 v2.4.2 // indirect
31-
golang.org/x/sys v0.39.0 // indirect
31+
golang.org/x/sys v0.41.0 // indirect
3232
google.golang.org/protobuf v1.36.8 // indirect
3333
gopkg.in/yaml.v3 v3.0.1 // indirect
3434
)

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
github.com/VictoriaMetrics/metrics v1.41.1 h1:xYQilpPmq5BPB+uIbe4Iygdw1cSiI4obYQjfLdQN2Xo=
22
github.com/VictoriaMetrics/metrics v1.41.1/go.mod h1:xDM82ULLYCYdFRgQ2JBxi8Uf1+8En1So9YUwlGTOqTc=
3+
github.com/VictoriaMetrics/metrics v1.41.2 h1:pLQ4Mw9TqXFq3ZsZVJkz88JHpjL9LY5NHTY3v2gBNAw=
4+
github.com/VictoriaMetrics/metrics v1.41.2/go.mod h1:xDM82ULLYCYdFRgQ2JBxi8Uf1+8En1So9YUwlGTOqTc=
35
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
46
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
57
github.com/cactus/go-statsd-client/v5 v5.1.0 h1:sbbdfIl9PgisjEoXzvXI1lwUKWElngsjJKaZeC021P4=
@@ -57,6 +59,8 @@ go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI=
5759
go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU=
5860
golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
5961
golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
62+
golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k=
63+
golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
6064
google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc=
6165
google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU=
6266
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

0 commit comments

Comments
 (0)