From dd2fa0a1da9f4fb71d4211ce0392ba2e358a58e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 24 Mar 2025 20:28:47 +0000 Subject: [PATCH 1/2] Bump golangci/golangci-lint-action from 6 to 7 Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6 to 7. - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](https://github.com/golangci/golangci-lint-action/compare/v6...v7) --- updated-dependencies: - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index cdcf5ea..5d3478c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -65,4 +65,4 @@ jobs: run: go run golang.org/x/vuln/cmd/govulncheck@latest -test ./... - name: Lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@v7 From e00706e30905d4a5f60bf1437ef1315923b62689 Mon Sep 17 00:00:00 2001 From: Michael Urman Date: Mon, 31 Mar 2025 13:59:35 -0500 Subject: [PATCH 2/2] Add minimal golangci.yml to exclude std errors --- .github/golangci.yml | 5 +++++ .github/workflows/tests.yaml | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .github/golangci.yml diff --git a/.github/golangci.yml b/.github/golangci.yml new file mode 100644 index 0000000..f2058cc --- /dev/null +++ b/.github/golangci.yml @@ -0,0 +1,5 @@ +version: "2" +linters: + exclusions: + presets: + - std-error-handling diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5d3478c..e5dd478 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -66,3 +66,5 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@v7 + with: + args: --config=.github/golangci.yml