From d0d52d0ddf5914c103edc0830bf55796ae52805a Mon Sep 17 00:00:00 2001 From: Rohan Yadav Date: Wed, 12 Feb 2025 11:35:46 +0530 Subject: [PATCH] dep: update golangci lint action and disable exportloopref --- .github/workflows/_static_analysis.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_static_analysis.yaml b/.github/workflows/_static_analysis.yaml index c2924a5..38f8912 100644 --- a/.github/workflows/_static_analysis.yaml +++ b/.github/workflows/_static_analysis.yaml @@ -14,10 +14,13 @@ jobs: with: go-version-file: "go.mod" - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v6 continue-on-error: ${{ github.event_name != 'pull_request' }} with: only-new-issues: true skip-cache: true + # As of Go 1.22, this problem no longer occurs and fixed by Go team + # https://github.com/kyoh86/exportloopref + args: --disable=exportloopref - name: Check if CHANGELOG is valid uses: newrelic/release-toolkit/validate-markdown@v1