About GitHub Actions usage for code review tools
Copilot-Codeüberprüfung wird GitHub Actions verwendet, um die agentischen Funktionen auszuführen, einschließlich vollständiger Projektkontextsammlung und aller Funktionen in öffentliche Vorschau. Standardmäßig verwendet Copilot-CodeüberprüfungGitHub-gehostete Runner.
Wenn Ihre Organisation GitHub-gehostete Runner deaktiviert hat, sind die Agenten-Funktionen nicht verfügbar. In diesem Fall fallen Codeüberprüfungen auf eine eingeschränktere Überprüfung zurück. Organizations in this situation can use self-hosted runners.
You can also upgrade to larger GitHub-hosted runners for better performance.
Configure self-hosted runners for code review
Run Copilot-Codeüberprüfung 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 Actions Runner Controller (Steuerung für Aktionsläufer).
Warnung
ARC is the only officially supported solution for self-hosting Copilot-Codeüberprüfung. For security reasons, do not use non-ARC self-hosted runners.
Copilot-Codeüberprüfung is only compatible with Ubuntu x64 Linux runners.
To configure self-hosted runners for Copilot-Codeüberprüfung:
-
Configure network security controls for your GitHub Actions runners to ensure that Copilot-Codeüberprüfung 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 Anpassen der Entwicklungsumgebung für GitHub Copilot Cloud-Agent.# ... jobs: copilot-setup-steps: runs-on: arc-scale-set-name # ...
Upgrade to larger GitHub-hosted GitHub Actions runners
By default, Copilot-Codeüberprüfung runs on a standard GitHub Actions runner. Larger runners provide better performance (CPU and memory), more disk space, and advanced features like Azure private networking. See Größere Läufer.
Hinweis
Usage of larger GitHub-hosted runners is billed per-minute and may incur additional GitHub Actions charges.
-
Set up larger runners for your organization. See Verwalten größerer Runner.
-
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 Copilot-Codeüberprüfung to use. See Ausführen von Aufträgen auf größeren Runnern.# ... jobs: copilot-setup-steps: runs-on: ubuntu-4-core # ...