mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
.github: make govuln-check generic
Signed-off-by: vivekpatani <9080894+vivekpatani@users.noreply.github.com>
This commit is contained in:
parent
993f3c0942
commit
0e65199e1a
16
.github/workflows/govuln.yaml
vendored
16
.github/workflows/govuln.yaml
vendored
@ -3,24 +3,10 @@ on: [push, pull_request]
|
|||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- linux-amd64-govuln-check
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: "1.19.3"
|
go-version: "1.19.3"
|
||||||
- run: date
|
- run: date
|
||||||
- env:
|
- run: go install golang.org/x/vuln/cmd/govulncheck@latest && govulncheck ./...
|
||||||
TARGET: ${{ matrix.target }}
|
|
||||||
run: |
|
|
||||||
echo "${TARGET}"
|
|
||||||
case "${TARGET}" in
|
|
||||||
linux-amd64-govuln-check)
|
|
||||||
go install golang.org/x/vuln/cmd/govulncheck@latest
|
|
||||||
govulncheck ./...
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user