|
| 1 | +--- |
| 2 | +title: Configuring self-hosted runners for GitHub Copilot code review |
| 3 | +shortTitle: Configure self-hosted runners |
| 4 | +intro: 'Learn how to configure self-hosted runners for {% data variables.copilot.copilot_code-review_short %}.' |
| 5 | +allowTitleToDifferFromFilename: true |
| 6 | +versions: |
| 7 | + feature: copilot |
| 8 | +topics: |
| 9 | + - Copilot |
| 10 | +contentType: how-tos |
| 11 | +category: |
| 12 | + - Author and optimize with Copilot |
| 13 | +--- |
| 14 | + |
| 15 | +## About {% data variables.product.prodname_actions %} usage for code review tools |
| 16 | + |
| 17 | +{% data reusables.copilot.code-review.code-review-actions-usage %} Organizations in this situation can use self-hosted runners. |
| 18 | + |
| 19 | +## Configuring self-hosted runners for code review |
| 20 | + |
| 21 | +You can run {% data variables.copilot.copilot_code-review_short %} using self-hosted {% data variables.product.prodname_actions %} runners with ARC (Actions Runner Controller). You must first set up ARC-managed scale sets in your environment. For more information on ARC, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/about-actions-runner-controller). |
| 22 | + |
| 23 | +> [!WARNING] |
| 24 | +> ARC is the only officially supported solution for self-hosting {% data variables.copilot.copilot_code-review_short %}. For security reasons, we do not recommend using non-ARC self-hosted runners. |
| 25 | +
|
| 26 | +> [!NOTE] |
| 27 | +> {% data variables.copilot.copilot_code-review_short %} is only compatible with Ubuntu x64 Linux runners. Runners with Windows, macOS or other operating systems are not supported. |
| 28 | +
|
| 29 | +To configure self-hosted runners for {% data variables.copilot.copilot_code-review_short %}: |
| 30 | + |
| 31 | +1. Configure network security controls for your {% data variables.product.prodname_actions %} runners to ensure that {% data variables.copilot.copilot_code-review_short %} does not have open access to your network or the public internet. |
| 32 | + |
| 33 | + You must configure your firewall to allow connections to the [standard hosts required for {% data variables.product.prodname_actions %} self-hosted runners](/actions/reference/runners/self-hosted-runners#accessible-domains-by-function), plus the following hosts: |
| 34 | + |
| 35 | + * `api.githubcopilot.com` |
| 36 | + * `uploads.github.com` |
| 37 | + * `user-images.githubusercontent.com` |
| 38 | +1. In your `copilot-setup-steps.yml` file, set the `runs-on` attribute to your ARC-managed scale set name. For more information, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment#preinstalling-tools-or-dependencies-in-copilots-environment). |
| 39 | + |
| 40 | + ```yaml |
| 41 | + # ... |
| 42 | + |
| 43 | + jobs: |
| 44 | + copilot-setup-steps: |
| 45 | + runs-on: arc-scale-set-name |
| 46 | + # ... |
| 47 | + ``` |
0 commit comments