git » gofer » commit 77d9633

ci: Always check for latest Go version in govulncheck

author Alberto Bertogli
2023-02-19 09:16:32 UTC
committer Alberto Bertogli
2023-02-19 09:16:32 UTC
parent 54e2d58a125be37fb4a0e586c0e1ed6e4d9791c0

ci: Always check for latest Go version in govulncheck

Occasionally, we may get govulncheck failing because the test is not run
with the latest Go release. This often happens after a new Go security
release, for example.

To help reduce the chances of these somewhat false positives, make the
GitHub CI always check for the latest Go version when running
govulncheck.

.github/workflows/govulncheck.yaml +1 -0

diff --git a/.github/workflows/govulncheck.yaml b/.github/workflows/govulncheck.yaml
index 2455e16..ac5a3a3 100644
--- a/.github/workflows/govulncheck.yaml
+++ b/.github/workflows/govulncheck.yaml
@@ -18,6 +18,7 @@ jobs:
       - uses: actions/setup-go@v3
         with:
           go-version: ">=1.19.2"
+          check-latest: true
       - name: install govulncheck
         run: go install golang.org/x/vuln/cmd/govulncheck@latest
       - name: run govulncheck