Skip to content

Fix CodeQL Go analysis autobuild compatibility - #37

Draft
Thearas with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-analyze-job-failure
Draft

Fix CodeQL Go analysis autobuild compatibility#37
Thearas with Copilot wants to merge 2 commits into
masterfrom
copilot/fix-analyze-job-failure

Conversation

Copilot AI commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

The Analyze (go) GitHub Actions job was failing during CodeQL autobuild because the repository required Go 1.27 while the analyzer was invoking Go 1.26. This change makes the module metadata compatible with CodeQL’s current Go toolchain without changing the preferred developer toolchain.

  • Root cause

    • go.mod declared go 1.27.0.
    • CodeQL autobuild runs Go tooling with Go 1.26.x and GOTOOLCHAIN=local, so analysis failed before extraction could start.
  • Change

    • Lower the module go directive to 1.26.0 so CodeQL can parse and build the module.
    • Keep toolchain go1.27.0 so local development continues to prefer Go 1.27.
  • Effect

    • Restores compatibility with CodeQL’s Go autobuild path.
    • Preserves the newer toolchain for normal development workflows.
module github.com/Thearas/dodo

go 1.26.0

toolchain go1.27.0

Co-authored-by: Thearas <44015907+Thearas@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'Analyze (go)' Fix CodeQL Go analysis autobuild compatibility Aug 26, 2026
Copilot AI requested a review from Thearas August 26, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants