From 5ed6c0cd903dab8c2e950f5bcedbf7e3acaa82af Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Tue, 3 Mar 2026 11:58:19 +0100 Subject: [PATCH 1/2] Update golangci-lint to v2.10.1 --- .github/workflows/lint.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 7a1ae3398..77b60565f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -29,7 +29,7 @@ jobs: - name: Run golangci-lint uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 with: - version: v2.8.0 + version: v2.10.1 args: --timeout 5m -v #--exclude SA5011 diff --git a/Makefile b/Makefile index 0f060d2ce..5880b7246 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ GOFLAGS=-mod=vendor REGISTRY ?= localhost UPLOADREGISTRY ?= quay.io/validatedpatterns GOLANGCI_IMG ?= docker.io/golangci/golangci-lint -GOLANGCI_VERSION ?= 2.8.0 +GOLANGCI_VERSION ?= 2.10.1 # CI uses a non-writable home dir, make sure .cache is writable ifeq ("${HOME}", "/") From d2775e4dd53f2cf8e7600b164d7804253c9515f7 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Tue, 3 Mar 2026 14:05:25 +0100 Subject: [PATCH 2/2] Fix linter error --- internal/controller/pattern_controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/controller/pattern_controller.go b/internal/controller/pattern_controller.go index 7a7d32fd7..b30b5302c 100644 --- a/internal/controller/pattern_controller.go +++ b/internal/controller/pattern_controller.go @@ -978,7 +978,7 @@ func (r *PatternReconciler) checkSpokeApplicationsGone(appOfApps bool) (bool, er } // Make the request - resp, err := httpClient.Do(req) + resp, err := httpClient.Do(req) //nolint:gosec // URL is constructed from a known internal service endpoint if err != nil { return false, fmt.Errorf("failed to make HTTP request to search service: %w", err) }