Skip to content

Commit 4fe746d

Browse files
committed
build: Run govulncheck (fixes syncthing#8983)
1 parent 4f8cdd4 commit 4fe746d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build-syncthing.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ jobs:
125125
- package-cross
126126
- package-source
127127
- package-debian
128+
- govulncheck
128129
steps:
129130
- uses: actions/checkout@v3
130131

@@ -762,3 +763,25 @@ jobs:
762763
platforms: linux/amd64,linux/arm64,linux/arm/7
763764
push: ${{ env.DOCKER_PUSH == 'true' }}
764765
tags: ${{ env.DOCKER_TAGS }}
766+
767+
#
768+
# Check for known vulnerabilities in Go dependencies
769+
#
770+
771+
govulncheck:
772+
runs-on: ubuntu-latest
773+
name: Run govulncheck
774+
steps:
775+
- uses: actions/checkout@v3
776+
777+
- uses: actions/setup-go@v4
778+
with:
779+
go-version: ${{ env.GO_VERSION }}
780+
cache: false
781+
check-latest: true
782+
783+
- name: run govulncheck
784+
run: |
785+
go run build.go assets
786+
go install golang.org/x/vuln/cmd/govulncheck@latest
787+
govulncheck ./...

0 commit comments

Comments
 (0)