Skip to content

Commit

Permalink
Add govulncheck to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ARolek committed Feb 23, 2024
1 parent b7ad33b commit 517e323
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/on_pr_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: 1.21.3
go-version-file: 'go-mod'

- name: Env Debug
run: |
Expand Down Expand Up @@ -110,3 +110,20 @@ jobs:
pushd ${GITHUB_WORKSPACE}/server
go generate ./...
popd
govulncheck:
name: Run govulncheck
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go-mod'

- name: Install and run go vulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...

0 comments on commit 517e323

Please sign in to comment.