From 0c013e13c00ce8c6ebb6ff92e651be4d1506a208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Podan=C3=BD?= Date: Fri, 28 Apr 2023 08:57:38 +0200 Subject: [PATCH] actions: fix: infer go version --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 277981c..20f8dea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,8 +44,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + - name: Install Go + uses: actions/setup-go@v4 + id: go-version + with: + cache: false + go-version-file: go.mod - name: Scan for Vulnerabilities in Code uses: wandera/govulncheck-action@v0.0.10 with: - go-version: 1.20.0 + go-version: ${{ steps.go-version.outputs.go-version }} package: ./...