mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-17 02:25:14 +00:00
build: Run govulncheck (fixes #8983)
This commit is contained in:
parent
4f8cdd41ee
commit
4fe746d9aa
23
.github/workflows/build-syncthing.yaml
vendored
23
.github/workflows/build-syncthing.yaml
vendored
@ -125,6 +125,7 @@ jobs:
|
|||||||
- package-cross
|
- package-cross
|
||||||
- package-source
|
- package-source
|
||||||
- package-debian
|
- package-debian
|
||||||
|
- govulncheck
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
@ -762,3 +763,25 @@ jobs:
|
|||||||
platforms: linux/amd64,linux/arm64,linux/arm/7
|
platforms: linux/amd64,linux/arm64,linux/arm/7
|
||||||
push: ${{ env.DOCKER_PUSH == 'true' }}
|
push: ${{ env.DOCKER_PUSH == 'true' }}
|
||||||
tags: ${{ env.DOCKER_TAGS }}
|
tags: ${{ env.DOCKER_TAGS }}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Check for known vulnerabilities in Go dependencies
|
||||||
|
#
|
||||||
|
|
||||||
|
govulncheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Run govulncheck
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
cache: false
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
|
- name: run govulncheck
|
||||||
|
run: |
|
||||||
|
go run build.go assets
|
||||||
|
go install golang.org/x/vuln/cmd/govulncheck@latest
|
||||||
|
govulncheck ./...
|
||||||
|
Loading…
Reference in New Issue
Block a user