Skip to content

Commit 7aa4b0e

Browse files
authored
adding vulncheck github workflow action (#1712)
Signed-off-by: Lenin Alevski <[email protected]>
1 parent bc82699 commit 7aa4b0e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/vulncheck.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: VulnCheck
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
- main
7+
push:
8+
branches:
9+
- master
10+
- main
11+
jobs:
12+
vulncheck:
13+
name: Analysis
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
go-version: [ 1.19 ]
18+
steps:
19+
- name: Check out code into the Go module directory
20+
uses: actions/checkout@v3
21+
- uses: actions/setup-go@v3
22+
with:
23+
go-version: ${{ matrix.go-version }}
24+
check-latest: true
25+
- name: Get govulncheck
26+
run: go install golang.org/x/vuln/cmd/govulncheck@latest
27+
shell: bash
28+
- name: Run govulncheck
29+
run: govulncheck ./...
30+
shell: bash

0 commit comments

Comments
 (0)