You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SLACK_MESSAGE: <@${{ github.actor }}> opened https://github.com/github/docs/issues/${{ github.event.number || github.event.issue.number }} publicly on the github/docs repo instead of a private repo. They have been notified via a new issue in the private repo to confirm this was intentional.
Copy file name to clipboardExpand all lines: content/copilot/how-tos/copilot-on-github/set-up-copilot/configure-runners.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ To configure self-hosted runners for {% data variables.copilot.copilot_code-revi
36
36
*`api.githubcopilot.com`
37
37
*`uploads.github.com`
38
38
*`user-images.githubusercontent.com`
39
-
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/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment#preinstalling-tools-or-dependencies-in-copilots-environment).
39
+
1. In your repository's `.github/workflows/copilot-code-review.yml` file, set the `runs-on` attribute to your ARC-managed scale set name.
40
40
41
41
```yaml
42
42
# ...
@@ -47,6 +47,9 @@ To configure self-hosted runners for {% data variables.copilot.copilot_code-revi
47
47
# ...
48
48
```
49
49
50
+
> [!NOTE]
51
+
> If your repository does not have a `copilot-code-review.yml` file, {% data variables.copilot.copilot_code-review_short %} will use the `copilot-setup-steps.yml` file instead. For more information about `copilot-setup-steps.yml`, see [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment#preinstalling-tools-or-dependencies-in-copilots-environment).
52
+
50
53
## Upgrade to larger {% data variables.product.prodname_dotcom %}-hosted {% data variables.product.prodname_actions %} runners
51
54
52
55
By default, {% data variables.copilot.copilot_code-review_short %} runs on a standard {% data variables.product.prodname_actions %} runner. Larger runners provide better performance (CPU and memory), more disk space, and advanced features like Azure private networking. See [AUTOTITLE](/actions/concepts/runners/larger-runners).
@@ -61,7 +64,7 @@ By default, {% data variables.copilot.copilot_code-review_short %} runs on a sta
61
64
*`uploads.github.com`
62
65
*`user-images.githubusercontent.com`
63
66
64
-
1. In your `copilot-setup-steps.yml` file, set the `runs-on` attribute to the label for the larger runners you want {% data variables.copilot.copilot_code-review_short %} to use. See [AUTOTITLE](/actions/how-tos/manage-runners/larger-runners/use-larger-runners).
67
+
1. In your repository's `copilot-code-review.yml` file, set the `runs-on` attribute to the label for the larger runners you want {% data variables.copilot.copilot_code-review_short %} to use. See [AUTOTITLE](/actions/how-tos/manage-runners/larger-runners/use-larger-runners).
65
68
66
69
```yaml
67
70
# ...
@@ -72,12 +75,15 @@ By default, {% data variables.copilot.copilot_code-review_short %} runs on a sta
72
75
# ...
73
76
```
74
77
78
+
> [!NOTE]
79
+
> If your repository does not have a `copilot-code-review.yml` file, {% data variables.copilot.copilot_code-review_short %} will use the `copilot-setup-steps.yml` file instead.
80
+
75
81
## Configure runners at the organization level
76
82
77
83
Organization owners can set a default runner type for {% data variables.copilot.copilot_code-review_short %} and {% data variables.copilot.copilot_cloud_agent %} across all repositories in the organization, and control whether individual repositories can override this default.
78
84
79
85
> [!NOTE]
80
-
> The organization-level runner type applies to both {% data variables.copilot.copilot_code-review_short %} and {% data variables.copilot.copilot_cloud_agent %}. Repositories can still override the organization default using `copilot-setup-steps.yml` unless you disable **Allow repositories to customize the runner type**. For more information, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-organization/configure-runner-for-coding-agent#preventing-repositories-from-customizing-the-runner-type).
86
+
> The organization-level runner type applies to both {% data variables.copilot.copilot_code-review_short %} and {% data variables.copilot.copilot_cloud_agent %}. Repositories can still override the organization default for code review using `copilot-code-review.yml` (or `copilot-setup-steps.yml`) unless you disable **Allow repositories to customize the runner type**. For more information, see [AUTOTITLE](/copilot/how-tos/administer-copilot/manage-for-organization/configure-runner-for-coding-agent#preventing-repositories-from-customizing-the-runner-type).
81
87
82
88
This is useful if your organization requires all code reviews and {% data variables.copilot.copilot_cloud_agent_short %} tasks to run on specific runners, for example, to use larger runners for better performance or self-hosted runners that have access to internal resources.
83
89
@@ -88,4 +94,4 @@ This is useful if your organization requires all code reviews and {% data variab
88
94
1. In the "Edit runner type" dialog, select the runner type to use by default across your organization, then click **Save runner selection**.
89
95
***Standard {% data variables.product.prodname_dotcom %} runner**: {% data variables.copilot.copilot_code-review_short %} and {% data variables.copilot.copilot_cloud_agent %} will use the standard {% data variables.product.prodname_dotcom %}-hosted runner.
90
96
***Labeled runner**: {% data variables.copilot.copilot_code-review_short %} and {% data variables.copilot.copilot_cloud_agent %} will use a runner matching the label you specify.
91
-
1. Optionally, to prevent individual repositories from overriding the organization-level runner configuration using their `copilot-setup-steps.yml` file, disable **Allow repositories to customize the runner type**.
97
+
1. Optionally, to prevent individual repositories from overriding the organization-level runner configuration using their `copilot-code-review.yml` or `copilot-setup-steps.yml` file, disable **Allow repositories to customize the runner type**.
0 commit comments