Skip to content

chore(codeql): override default codeql setup for go 1.27 toolchain - #2752

Closed
xlgmokha wants to merge 1 commit into
supabase:masterfrom
xlgmokha:ci/codeql-advanced-setup
Closed

chore(codeql): override default codeql setup for go 1.27 toolchain#2752
xlgmokha wants to merge 1 commit into
supabase:masterfrom
xlgmokha:ci/codeql-advanced-setup

Conversation

@xlgmokha

@xlgmokha xlgmokha commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Chore. Update codeql to use go 1.27 toolchain

What is the current behavior?

Currently failing with:

  [2026-08-26 23:29:16] [build-stderr] 2026/08/26 23:29:16 Warning: go list command failed, output below:
  [2026-08-26 23:29:16] [build-stderr] stdout:
  [2026-08-26 23:29:16] [build-stderr] stderr:
  [2026-08-26 23:29:16] [build-stderr] go: go.mod requires go >= 1.27.0 (running go 1.26.7; GOTOOLCHAIN=local)
  [2026-08-26 23:29:16] [build-stderr] 2026/08/26 23:29:16 Warning: go list command failed, output below:
  [2026-08-26 23:29:16] [build-stderr] stdout:
  [2026-08-26 23:29:16] [build-stderr] stderr:
  [2026-08-26 23:29:16] [build-stderr] go: go.mod requires go >= 1.27.0 (running go 1.26.7; GOTOOLCHAIN=local)
  [2026-08-26 23:29:16] [build-stderr] 2026/08/26 23:29:16 Warning: go list command failed, output below:
  [2026-08-26 23:29:16] [build-stderr] stdout:
  [2026-08-26 23:29:16] [build-stderr] stderr:
  [2026-08-26 23:29:16] [build-stderr] go: go.mod requires go >= 1.27.0 (running go 1.26.7; GOTOOLCHAIN=local)
  [2026-08-26 23:29:16] [build-stderr] 2026/08/26 23:29:16 Running extractor command '/opt/hostedtoolcache/CodeQL/2.26.3/x64/codeql/go/tools/linux64/go-extractor [./...]' from directory '.'.
  [2026-08-26 23:29:16] [build-stderr] 2026/08/26 23:29:16 Build flags: ''; patterns: './...'
  [2026-08-26 23:29:16] [build-stderr] 2026/08/26 23:29:16 Running packages.Load.
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Error running go tooling: err: exit status 1: stderr: go: go.mod requires go >= 1.27.0 (running go 1.26.7; GOTOOLCHAIN=local)
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Extraction failed for .: exit status 1
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Running extractor command '/opt/hostedtoolcache/CodeQL/2.26.3/x64/codeql/go/tools/linux64/go-extractor [./...]' from directory 'internal/forks/godotenv'.
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Build flags: ''; patterns: './...'
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Running packages.Load.
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Error running go tooling: err: exit status 1: stderr: go: go.mod requires go >= 1.27.0 (running go 1.26.7; GOTOOLCHAIN=local)
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Extraction failed for internal/forks/godotenv: exit status 1
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Running extractor command '/opt/hostedtoolcache/CodeQL/2.26.3/x64/codeql/go/tools/linux64/go-extractor [./...]' from directory 'tools'.
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Build flags: ''; patterns: './...'
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Running packages.Load.
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Error running go tooling: err: exit status 1: stderr: go: go.mod requires go >= 1.27.0 (running go 1.26.7; GOTOOLCHAIN=local)
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Extraction failed for tools: exit status 1
  [2026-08-26 23:29:17] [build-stderr] 2026/08/26 23:29:17 Extraction failed for all discovered Go projects.
  [2026-08-26 23:29:17] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/opt/hostedtoolcache/CodeQL/2.26.3/x64/codeql/tools/linux64/preload_tracer, /opt/hostedtoolcache/CodeQL/2.26.3/x64/codeql/go/tools/autobuild.sh])
  A fatal error occurred: Exit status 1 from command: [/opt/hostedtoolcache/CodeQL/2.26.3/x64/codeql/go/tools/autobuild.sh]
  Error: We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. We were unable to automatically build your code. Please change the build mode for this language to manual and specify build steps for your project. See https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/automatic-build-failed for more information. Encountered a fatal error while running "/opt/hostedtoolcache/CodeQL/2.26.3/x64/codeql/codeql database trace-command --use-build-mode --working-dir /home/runner/work/auth/auth /home/runner/work/_temp/codeql_databases/go". Exit code was 2 and error was: A fatal error occurred: Exit status 1 from command: [/opt/hostedtoolcache/CodeQL/2.26.3/x64/codeql/go/tools/autobuild.sh]. See the logs for more details.

What is the new behavior?

Not failing.

Additional context

Related to: #2744

@xlgmokha xlgmokha self-assigned this Aug 26, 2026
@xlgmokha xlgmokha changed the title chore(codeql): advanced setup with go 1.27 toolchain chore(codeql): override default codeql setup for go 1.27 toolchain Aug 26, 2026
@xlgmokha xlgmokha closed this Aug 27, 2026
@xlgmokha
xlgmokha deleted the ci/codeql-advanced-setup branch August 27, 2026 00:28
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.

1 participant