.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 <[email protected]>
Change-Id: I02c3a8139941dee71a04fcdb168b3975da1e9eda
This commit is contained in:
Brad Fitzpatrick committed 2026-08-01 01:11:17 +00:00
1 parent cab5aa28af
commit 8430fc2ca9
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -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