Skip to content

Commit 4cd3a47

Browse files
authored
chore: add govulncheck (#322)
1 parent 6e7b6d4 commit 4cd3a47

3 files changed

Lines changed: 31 additions & 1 deletion

File tree

.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/hamba/cmd/v3
22

3-
go 1.25.0
3+
go 1.25.7
44

55
require (
66
github.com/ettle/strcase v0.2.0

0 commit comments

Comments
 (0)