.github: make govuln-check generic

Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
dependabot/go_modules/go.uber.org/atomic-1.10.0
vivekpatani 2022-10-31 20:17:09 -07:00
parent 993f3c0942
commit 0e65199e1a
1 changed files with 1 additions and 15 deletions

View File

@ -3,24 +3,10 @@ on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- linux-amd64-govuln-check
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.19.3"
- run: date
- env:
TARGET: ${{ matrix.target }}
run: |
echo "${TARGET}"
case "${TARGET}" in
linux-amd64-govuln-check)
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
;;
esac
- run: go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...