ci: source the Go version from go.mod in copilot-setup-steps#93
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
✅MegaLinter analysis: Success
Notices📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining See detailed reports in MegaLinter artifacts
|
CI note (not caused by this change): the The mismatch is deterministic (identical hashes across two runs), so it is The step this PR actually affects — Set up Go — succeeds with Recommend tracking the golangci-lint install-checksum failure separately |

Problem
.github/workflows/copilot-setup-steps.ymlhardcodes the Go toolchain:…but
go.moddeclaresgo 1.25.10, so the Copilot setup environment runs anolder Go than the module floor. AGENTS.md is explicit that
go.modis "thesingle source of truth, so it never drifts" — yet this workflow has drifted
(1.25.1 < 1.25.10), and as a template the stale pin propagates to every
scaffolded project's Copilot environment.
cd.yamlalready does this correctly and documents exactly why:Fix
Use
go-version-file: go.modincopilot-setup-steps.yml, matchingcd.yaml.The Copilot toolchain now tracks the module floor automatically and can never
drift again. One-line change (plus a short comment).
Validation
actionlint .github/workflows/copilot-setup-steps.yml→ clean.go-version-fileis supported byactions/setup-gov6 (already relied on incd.yaml).