From 1af8ec8692439aebce8da933a5a94407c9366b77 Mon Sep 17 00:00:00 2001 From: Ruslan Sayfutdinov Date: Wed, 13 Nov 2024 18:02:24 +0000 Subject: [PATCH] chore: Use .github/actions/setup-go in govulncheck --- .github/workflows/govulncheck.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/govulncheck.yml b/.github/workflows/govulncheck.yml index 62dc8727291..43660c0f028 100644 --- a/.github/workflows/govulncheck.yml +++ b/.github/workflows/govulncheck.yml @@ -24,14 +24,10 @@ jobs: id: go-version run: | echo go-version="$(awk '/GO_VERSION:/ { print $2 }' .github/workflows/main.yml | tr -d \')" >> "${GITHUB_OUTPUT}" - - uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a + - uses: ./.github/actions/setup-go with: - path: | - /home/runner/go/pkg/mod - /home/runner/.cache/go-build - key: govulncheck-${{ runner.os }}-${{ steps.go-version.outputs.go-version }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - govulncheck-${{ runner.os }}-${{ steps.go-version.outputs.go-version }}- + go-version: ${{ steps.go-version.outputs.go-version }} + upload-cache: false - uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee with: cache: false