About GitHub Actions usage for code review tools
revisión de código Copilot usa GitHub Actions para ejecutar herramientas de revisión de código de Copilot, incluida la recopilación completa del contexto del proyecto y las herramientas adicionales en versión preliminar pública. De forma predeterminada, revisión de código Copilot usa runners hospedados por GitHub.
Si su organización ha deshabilitado los ejecutores hospedados por GitHub, el nuevo herramientas de revisión de código de Copilot no estará disponible. En este caso, las revisiones de código se revertirán a una revisión más limitada. Organizations in this situation can use self-hosted runners.
You can also upgrade to larger GitHub-hosted runners for better performance.
Configuring self-hosted runners for code review
You can run revisión de código Copilot using self-hosted GitHub 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 Controlador del ejecutor de acciones.
Advertencia
ARC is the only officially supported solution for self-hosting revisión de código Copilot. For security reasons, we do not recommend using non-ARC self-hosted runners.
Nota:
revisión de código Copilot is only compatible with Ubuntu x64 Linux runners. Runners with Windows, macOS or other operating systems are not supported.
To configure self-hosted runners for revisión de código Copilot:
-
Configure network security controls for your GitHub Actions runners to ensure that revisión de código Copilot does not have open access to your network or the public internet.
You must configure your firewall to allow connections to the standard hosts required for GitHub Actions self-hosted runners, plus the following hosts:
api.githubcopilot.comuploads.github.comuser-images.githubusercontent.com
-
In your
copilot-setup-steps.ymlfile, set theruns-onattribute to your ARC-managed scale set name. For more information, see Personalización del entorno de desarrollo para el agente de codificación GitHub Copilot.# ... jobs: copilot-setup-steps: runs-on: arc-scale-set-name # ...
Upgrading to larger GitHub-hosted GitHub Actions runners
By default, revisión de código Copilot works in a standard GitHub Actions runner. You can upgrade to larger runners for better performance (CPU and memory), more disk space, and advanced features like Azure private networking. For more information, see Ejecutores más grandes.
Nota:
Usage of larger GitHub-hosted runners is billed per-minute and may incur additional GitHub Actions charges.
-
Set up larger runners for your organization. For more information, see Administración de ejecutores más grandes.
-
If you are using larger runners with Azure private networking, configure your Azure private network to allow outbound access to the following hosts:
api.githubcopilot.comuploads.github.comuser-images.githubusercontent.com
-
In your
copilot-setup-steps.ymlfile, set theruns-onattribute to the label for the larger runners you want revisión de código Copilot to use. For more information on specifying larger runners withruns-on, see Ejecución de trabajos en ejecutores más grandes.# ... jobs: copilot-setup-steps: runs-on: ubuntu-4-core # ...