-
Notifications
You must be signed in to change notification settings - Fork 653
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding vulncheck github workflow action (#1712)
Signed-off-by: Lenin Alevski <[email protected]>
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: VulnCheck | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
push: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
vulncheck: | ||
name: Analysis | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go-version: [ 1.19 ] | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
check-latest: true | ||
- name: Get govulncheck | ||
run: go install golang.org/x/vuln/cmd/govulncheck@latest | ||
shell: bash | ||
- name: Run govulncheck | ||
run: govulncheck ./... | ||
shell: bash |