From 536df6f2957138dbb7c8ff686ed84945e76b1004 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Mon, 7 Mar 2022 08:02:36 -0800 Subject: [PATCH] Fix golangci-lint action. - Bump the base golangci-lint version to 1.44, drop the patch version. - Explicitly include actions/setup-go (v3 no longer does it implicitly). - Specify a specific range of Go toolchain version. --- .github/workflows/lint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index ec17e619b39..e22dde8fca5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,6 +14,9 @@ jobs: timeout-minutes: 8 steps: - uses: actions/checkout@v3 + - uses: actions/setup-go@v2 + with: + go-version: '^1.17' - uses: technote-space/get-diff-action@v6.0.1 with: PATTERNS: | @@ -23,7 +26,7 @@ jobs: - uses: golangci/golangci-lint-action@v3.1.0 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.42.1 + version: v1.44 args: --timeout 10m github-token: ${{ secrets.github_token }} if: env.GIT_DIFF