Skip to content

Commit 468c3e6

Browse files
committed
add govulncheck gh action
1 parent fc36345 commit 468c3e6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/govulncheck.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: govulncheck
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
7+
jobs:
8+
govulncheck:
9+
name: govulncheck
10+
runs-on: ubuntu-24.04
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Install Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version-file: go.mod
20+
21+
- name: Run govulncheck
22+
uses: golang/govulncheck-action@v1
23+
with:
24+
go-version-input: ${{ steps.install-go.outputs.go-version }}
25+
go-package: ./...

0 commit comments

Comments
 (0)