Skip to content

Commit e0f329b

Browse files
committed
chore: add govulncheck
1 parent 6bf0c56 commit e0f329b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
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 ./...

0 commit comments

Comments
 (0)