Run Copilot code review on GitHub-hosted runners - #89
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 GitHub Actions workflow to force Copilot code review “setup steps” to run on GitHub-hosted runners (instead of org/self-hosted runner scale sets), appropriate for a public repository.
Changes:
- Introduces
.github/workflows/copilot-code-review.ymlwith the requiredcopilot-setup-stepsjob. - Sets the job runner to
ubuntu-latestand keeps setup as a no-op step. - Limits permissions to
contents: read.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| jobs: | ||
| # The job must be named `copilot-setup-steps`, or Copilot ignores this file. | ||
| copilot-setup-steps: | ||
| runs-on: ubuntu-latest |
| push: | ||
| paths: | ||
| - .github/workflows/copilot-code-review.yml | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/copilot-code-review.yml |
| contents: read | ||
|
|
||
| steps: | ||
| - name: Start Review |
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