From 8430fc2ca96ccf1574f92a9795db244265673aa6 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Fri, 31 Jul 2026 04:19:35 +0000 Subject: [PATCH] .github/workflows: pin setup-go to 1.27.0-rc.2 [DO NOT MERGE] actions/setup-go can't resolve the "1.27rc2" go directive from go.mod (no 1.27 release candidates exist in its versions manifest lookup path), so the CodeQL and golangci-lint jobs fail during setup. Pin the RC version explicitly while testing Go 1.27. These jobs may still fail later if CodeQL's Go extractor and golangci-lint don't yet support Go 1.27, but at least they'll fail with the real error. Updates #20220 Signed-off-by: Brad Fitzpatrick Change-Id: I02c3a8139941dee71a04fcdb168b3975da1e9eda --- .github/workflows/codeql-analysis.yml | 4 +++- .github/workflows/golangci-lint.yml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4f3290f58..b731b1dfd 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -51,7 +51,9 @@ jobs: - name: Install Go uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # zizmor: ignore[cache-poisoning] v6.3.0 with: - go-version-file: go.mod + # DO NOT MERGE: setup-go can't resolve the "1.27rc2" go.mod + # directive, so pin the release candidate explicitly. + go-version: "1.27.0-rc.2" # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 66b8497e6..d5d42f626 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -31,7 +31,9 @@ jobs: - uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 with: - go-version-file: go.mod + # DO NOT MERGE: setup-go can't resolve the "1.27rc2" go.mod + # directive, so pin the release candidate explicitly. + go-version: "1.27.0-rc.2" cache: true - name: golangci-lint