Skip to content

Pin CodeQL Windows runner to windows-2022 to unblock Analyze (cpp) - #94

Draft
Raymond Zhao (rzhao271) with Copilot wants to merge 1 commit into
dependabot/npm_and_yarn/multi-5a59400ff4from
copilot/fix-analyze-cpp-failure
Draft

Pin CodeQL Windows runner to windows-2022 to unblock Analyze (cpp)#94
Raymond Zhao (rzhao271) with Copilot wants to merge 1 commit into
dependabot/npm_and_yarn/multi-5a59400ff4from
copilot/fix-analyze-cpp-failure

Conversation

Copilot AI commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Analyze (cpp) in CodeQL failed on windows-latest because node-gyp could not resolve a usable Visual Studio toolchain on the hosted image. This change removes that image ambiguity by pinning the workflow to windows-2022.

  • Root cause surfaced in failing run

    • npm ci triggers native addon build (node-gyp rebuild) in CodeQL setup.
    • On windows-latest, node-gyp reports unsupported/undetected VS installation and exits non-zero.
  • Workflow change

    • Updated CodeQL job runner in .github/workflows/codeql.yml:
      • runs-on: windows-latestruns-on: windows-2022
    • No language matrix or analysis behavior changes.
  • Patch

    jobs:
      analyze:
        runs-on: windows-2022

Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Copilot AI changed the title Fix CodeQL Analyze (cpp) failure on windows-latest Pin CodeQL Windows runner to windows-2022 to unblock Analyze (cpp) Aug 24, 2026
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