Skip to content

Speed up CodeQL pull request analysis - #1655

Merged
aaronpowell merged 1 commit into
CommunityToolkit:mainfrom
afscrome:codex/codeql-pr-build-mode-none
Sep 28, 2026
Merged

aaronpowell merged 1 commit into
CommunityToolkit:mainfrom
afscrome:codex/codeql-pr-build-mode-none

Conversation

@afscrome

@afscrome afscrome commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

CodeQL analysis runs on pull requests are currently taking 15+ minutes as each run builds the entire community toolkit solution. Use build-mode: none for pull request runs to avoid the autobuild step, while retaining autobuild for pushes to main and the scheduled full scan.

Validation

Workflow-only change; tests were not run.

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1655

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1655"

@afscrome
afscrome marked this pull request as ready for review September 26, 2026 18:34
Copilot AI lite review requested due to automatic review settings September 26, 2026 18:34

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The workflow-only change was fully reviewed with no blocking issues identified.

Review effort: Lite
Findings: None

What changed in this PR

This PR speeds up CodeQL pull-request analysis by skipping the C# autobuild step while retaining full builds for pushes and scheduled scans.

Changes:

  • Uses build-mode: none for pull requests.
  • Retains autobuild for other workflow events.
File Description
.github/​workflows/​codeql.yml Configures CodeQL build mode by event type.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@aaronpowell
aaronpowell merged commit 696eea1 into CommunityToolkit:main Sep 28, 2026
166 checks passed
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.

3 participants