ci: install and run govulncheck directly in PR workflow

This commit is contained in:
wenjie 2026-04-08 10:49:28 +08:00
parent 3cc6907580
commit ff9f398c96

View file

@ -41,10 +41,11 @@ jobs:
with: with:
go-version-file: go.mod go-version-file: go.mod
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@v1.1.4
- name: Run Govulncheck - name: Run Govulncheck
uses: golang/govulncheck-action@v1 run: govulncheck -C . -format text ./...
with:
go-package: ./...
test: test:
name: Tests name: Tests