From 38fb9cb5663f7ce1859cb082f0fb863b7535a85f Mon Sep 17 00:00:00 2001 From: Evan Vetere Date: Wed, 25 Nov 2026 14:25:26 -0500 Subject: [PATCH] chore: Make Go toolchain pins readable by Renovate CI pinned Go to a literal 1.27 in three workflows, so it could drift from go.mod, and the golangci-lint version in the Taskfile carried no annotation, so Renovate could not see either pin. - Read the Go version from go.mod in the lint, test and observability workflows - Annotate GOLANGCI_LINT_VERSION for the shared Go toolchain Renovate group --- .github/workflows/lint.yml | 2 +- .github/workflows/observability.yml | 2 +- .github/workflows/test.yml | 2 +- Taskfile.yaml | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 09d9eab..738bd68 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v7 with: - go-version: '1.27' + go-version-file: go.mod - name: Run linter uses: golangci/golangci-lint-action@v9 diff --git a/.github/workflows/observability.yml b/.github/workflows/observability.yml index 208b25f..c867318 100644 --- a/.github/workflows/observability.yml +++ b/.github/workflows/observability.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v7 with: - go-version: '1.27' + go-version-file: go.mod - name: Setup Task uses: go-task/setup-task@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0eec32d..329092c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v7 with: - go-version: '1.27' + go-version-file: go.mod - name: Install setup-envtest run: go install sigs.k8s.io/controller-runtime/tools/setup-envtest@release-0.21 diff --git a/Taskfile.yaml b/Taskfile.yaml index 7fe8c9a..a726960 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -8,6 +8,7 @@ vars: TEST_INFRA_REPO_REF: 'v0.6.0' CONTROLLER_TOOLS_VERSION: "v0.17.3" DEFAULTER_GEN_VERSION: "v0.32.3" + # renovate: datasource=github-releases depName=golangci/golangci-lint GOLANGCI_LINT_VERSION: "v2.15.0" CRDOC_VERSION: "v0.6.4"