From 259b793c6bf0d7970be571f42b2e64c2841d41f8 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 7 Apr 2024 10:39:35 -0500 Subject: [PATCH] Add govulncheck step to Go builds --- .github/workflows/go-test.yml | 5 +++++ .github/workflows/go-with-releaser-image.yml | 5 +++++ .github/workflows/go-with-releaser.yml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 228e94d..58abdb6 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -29,6 +29,11 @@ jobs: run: | go test ./... + - id: govulncheck + uses: golang/govulncheck-action@v1 + with: + go-version-input: ${{ inputs.go-version }} + - name: Check GoReleaser if: inputs.uses-goreleaser uses: goreleaser/goreleaser-action@v5.0.0 diff --git a/.github/workflows/go-with-releaser-image.yml b/.github/workflows/go-with-releaser-image.yml index 69987d1..04ccc07 100644 --- a/.github/workflows/go-with-releaser-image.yml +++ b/.github/workflows/go-with-releaser-image.yml @@ -38,6 +38,11 @@ jobs: run: | go test ./... + - id: govulncheck + uses: golang/govulncheck-action@v1 + with: + go-version-input: ${{ inputs.go-version }} + - name: Setup docker buildx uses: docker/setup-buildx-action@v3.2.0 with: diff --git a/.github/workflows/go-with-releaser.yml b/.github/workflows/go-with-releaser.yml index de29744..5b7232d 100644 --- a/.github/workflows/go-with-releaser.yml +++ b/.github/workflows/go-with-releaser.yml @@ -31,6 +31,11 @@ jobs: run: | go test ./... + - id: govulncheck + uses: golang/govulncheck-action@v1 + with: + go-version-input: ${{ inputs.go-version }} + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5.0.0 with: