Skip to content

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

Open
Raymond Zhao (rzhao271) with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-analyze-cpp-failure
Open

Pin CodeQL Windows runner to windows-2022 to unblock Analyze (cpp)#94
Raymond Zhao (rzhao271) with Copilot wants to merge 1 commit into
mainfrom
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

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
Base automatically changed from dependabot/npm_and_yarn/multi-5a59400ff4 to main August 25, 2026 16:47
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
@rzhao271
Raymond Zhao (rzhao271) force-pushed the copilot/fix-analyze-cpp-failure branch from 761457b to 44fb23b Compare August 25, 2026 16:48
@rzhao271
Raymond Zhao (rzhao271) marked this pull request as ready for review August 25, 2026 16:48
@rzhao271 Raymond Zhao (rzhao271) added this to the 1.136.0 milestone Aug 25, 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.

4 participants