Skip to content

Commit 8771438

Browse files
committed
ci: run vulnerability scan in its own task
1 parent a790f71 commit 8771438

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/go_lib_pull_requests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- name: go test
106106
run:
107107
find . -name vendor -prune -o -name go.mod -print | xargs -n1 dirname
108-
| xargs -n1 -I{} bash -c "pushd {}; go test --race -v ./..."
108+
| xargs -n1 -I{} bash -c "pushd {}; go test -coverprofile=coverage.txt --race -v ./..."
109109
- name: Upload test coverage results to Codecov
110110
uses: codecov/codecov-action@v4
111111
with:
@@ -143,5 +143,3 @@ jobs:
143143
- id: govulncheck
144144
run: find . -name vendor -prune -o -name go.mod -print | xargs -n1 dirname
145145
| xargs -n1 -I{} bash -c "pushd {}; govulncheck ./..."
146-
| xargs -n1 -I{} bash -c "pushd {}; go test -coverprofile=coverage.txt --race -v ./..."
147-

0 commit comments

Comments
 (0)