Visitar URL original
added govulncheck · feast-dev/feast@5e04afe · GitHub
Skip to content

Commit 5e04afe

Browse files
Vperiodtntkathole
authored andcommitted
added govulncheck
Signed-off-by: Vanshika Vanshika <vvanshik@redhat.com> rh-pre-commit.version: 2.3.2 rh-pre-commit.check-secrets: ENABLED
1 parent 103809a commit 5e04afe

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

‎.github/workflows/security.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,43 @@ jobs:
6969
- name: Run safety scan
7070
continue-on-error: true
7171
run: safety scan --output json
72+
73+
govulncheck:
74+
name: Go Vulnerability Check (${{ matrix.module }})
75+
runs-on: ubuntu-latest
76+
timeout-minutes: 15
77+
permissions:
78+
contents: read
79+
80+
strategy:
81+
fail-fast: false
82+
matrix:
83+
include:
84+
- module: go-feature-server
85+
working-directory: .
86+
go-version-file: go.mod
87+
needs-protos: true
88+
- module: feast-operator
89+
working-directory: infra/feast-operator
90+
go-version-file: infra/feast-operator/go.mod
91+
needs-protos: false
92+
93+
steps:
94+
- name: Checkout repository
95+
uses: actions/checkout@v4
96+
97+
- name: Set up Go
98+
uses: actions/setup-go@v5
99+
with:
100+
go-version-file: ${{ matrix.go-version-file }}
101+
102+
- name: Compile Go protobuf files
103+
if: matrix.needs-protos
104+
run: make compile-protos-go
105+
106+
- name: Install govulncheck
107+
run: go install golang.org/x/vuln/cmd/govulncheck@latest
108+
109+
- name: Run govulncheck
110+
working-directory: ${{ matrix.working-directory }}
111+
run: govulncheck ./...

0 commit comments

Comments
 (0)