Run Copilot code review on GitHub-hosted runners - #26
Merged
Conversation
This repository is public, so it cannot use our self-hosted ARC scale sets. A copilot-code-review.yml workflow overrides the organization default runner type for Copilot code review only, so reviews run on ubuntu-latest while Copilot cloud agent keeps using the organization configuration.
iamimmanuelraj
approved these changes
Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
This repository is public. Our self-hosted Actions Runner Controller scale sets are not exposed to public repositories, so Copilot code review cannot use the organization default runner type here.
GitHub now supports repository-level runner and environment configuration for Copilot code review, independently of Copilot cloud agent (changelog).
What
Adds
.github/workflows/copilot-code-review.yml:copilot-setup-steps(required name, otherwise the file is ignored).runs-on: ubuntu-latest, so reviews run on GitHub-hosted runners.devextras so the reviewer has the same tooling contributors use (pytest,black,isort).Because this file is present, it takes precedence over
copilot-setup-steps.ymland over the organization-level runner type — for Copilot code review only. Copilot cloud agent continues to use the organization configuration and the self-hosted runners.Notes
push/pull_requesttriggers are scoped to this file only, so it is validated by Actions when edited but never runs on unrelated changes.Testing
Request a Copilot review on a pull request in this repository and confirm the setup job runs on a GitHub-hosted runner and the review is posted.