Skip to content

Commit

Permalink
chore: Use .github/actions/setup-go in govulncheck
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI authored and twpayne committed Nov 13, 2024
1 parent 9844fb3 commit 79131de
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79131de

Please sign in to comment.