Run Copilot code review on GitHub-hosted runners - #757
Conversation
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Adds a repository-level Copilot code review workflow to force Copilot reviews to run on GitHub-hosted runners (ubuntu) for this public repository, overriding org-level/self-hosted runner configuration for Copilot code review only.
Changes:
- Add
.github/workflows/copilot-code-review.ymldefining thecopilot-setup-stepsjob. - Configure the job to run on
ubuntu-latestwith minimal permissions and a no-op/placeholder step.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
iamimmanuelraj
left a comment
There was a problem hiding this comment.
Approving: adds the standard org-wide Copilot code review runner config. No product code touched.
This repository is public, so Copilot code review cannot use rtCamp self-hosted Actions Runner Controller scale sets, which are not exposed to public repositories.
Adds
.github/workflows/copilot-code-review.yml, which pins Copilot code review toubuntu-latest. The file takes precedence overcopilot-setup-steps.ymland over the organization-level runner type for Copilot code review only; Copilot cloud agent keeps using the organization configuration.No dependencies are installed: Copilot clones the repository and provisions what it needs itself. Repository-specific setup steps can be added to this file later if a review needs extra tooling.
Docs: https://docs.github.com/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-runners