update vulncheck.yml #229
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vulnerability Check | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**' | |
- '!**.md' | |
pull_request: | |
paths: | |
- '**' | |
- '!**.md' | |
jobs: | |
Security: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
check-latest: true | |
- name: Fetch Repository | |
uses: actions/checkout@v4 | |
- name: Install Govulncheck | |
run: | | |
export GO111MODULE=on | |
export PATH=${PATH}:`go env GOPATH`/bin | |
go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: Run Govulncheck | |
run: "cd test && `go env GOPATH`/bin/govulncheck ./..." |