Skip to content

Run Copilot code review on GitHub-hosted runners - #26

Merged
iamimmanuelraj merged 1 commit into
mainfrom
add/copilot-code-review-runner-config
Aug 13, 2026
Merged

Run Copilot code review on GitHub-hosted runners#26
iamimmanuelraj merged 1 commit into
mainfrom
add/copilot-code-review-runner-config

Conversation

@rtBot

@rtBot rtBot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

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:

  • Job named copilot-setup-steps (required name, otherwise the file is ignored).
  • runs-on: ubuntu-latest, so reviews run on GitHub-hosted runners.
  • Checks out the repo, sets up Python 3.11 with pip caching, and installs the SDK with its dev extras so the reviewer has the same tooling contributors use (pytest, black, isort).

Because this file is present, it takes precedence over copilot-setup-steps.yml and 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

  • Copilot code review only supports Ubuntu x64 Linux runners.
  • This override requires Allow repositories to customize the runner type to stay enabled in organization settings → Copilot → Runner type.
  • The push/pull_request triggers 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.

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.
Copilot AI balanced review requested due to automatic review settings August 13, 2026 08:20
@iamimmanuelraj
iamimmanuelraj merged commit aea23e1 into main Aug 13, 2026
5 of 6 checks passed
@iamimmanuelraj
iamimmanuelraj deleted the add/copilot-code-review-runner-config branch August 13, 2026 08:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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