Skip to content

Commit 08b3964

Browse files
Copilottimrogersjc-clarkCopilot
authored
Clarify self-hosted runner setup requirements for Copilot coding agent (#58375)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: timrogers <116134+timrogers@users.noreply.github.com> Co-authored-by: Tim Rogers <timrogers@github.com> Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e249684 commit 08b3964

File tree

1 file changed

+13
-21
lines changed

1 file changed

+13
-21
lines changed

content/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,7 @@ jobs:
144144

145145
## Using self-hosted {% data variables.product.prodname_actions %} runners with ARC
146146

147-
You can use self-hosted {% data variables.product.prodname_actions %} runners to support {% data variables.copilot.copilot_coding_agent %} using ARC (Actions Runner Controller). This allows you to run {% data variables.product.prodname_copilot_short %}'s development environment on your own infrastructure.
148-
149-
Before {% data variables.product.prodname_copilot_short %} can use self-hosted runners, you must first set up ARC-managed scale sets in your environment. For more information, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/about-actions-runner-controller).
150-
151-
To use self-hosted runners with ARC, update the `runs-on` attribute in your `copilot-setup-steps` job to target your ARC-managed scale set:
152-
153-
```yaml
154-
# ...
155-
156-
jobs:
157-
copilot-setup-steps:
158-
runs-on: arc-scale-set-name
159-
# ...
160-
```
161-
162-
Replace `arc-scale-set-name` with the name of your ARC-managed scale set.
147+
You can use ARC (Actions Runner Controller) to run {% data variables.copilot.copilot_coding_agent %} on self-hosted runners. You must first set up ARC-managed scale sets in your environment. For more information, see [AUTOTITLE](/actions/hosting-your-own-runners/managing-self-hosted-runners-with-actions-runner-controller/about-actions-runner-controller).
163148

164149
> [!WARNING]
165150
> Persistent runners are not recommended for autoscaling scenarios with {% data variables.copilot.copilot_coding_agent %}.
@@ -169,14 +154,21 @@ Replace `arc-scale-set-name` with the name of your ARC-managed scale set.
169154
> * {% data variables.copilot.copilot_coding_agent %} is only compatible with Ubuntu x64 Linux runners. Runners with Windows, macOS or other operating systems are not supported.
170155
> * For more information about ARC, see [AUTOTITLE](/actions/concepts/runners/actions-runner-controller).
171156

172-
### Repository firewall requirements
157+
1. In your `copilot-setup-steps.yml` file, set the `runs-on` attribute to your ARC-managed scale set name:
173158

174-
To enable communication between {% data variables.copilot.copilot_coding_agent %} and your self-hosted runners, you must disable the repository firewall in the coding agent's repository settings. Without this change, runners will not be able to connect to {% data variables.product.prodname_copilot_short %}.
159+
```yaml
160+
# ...
175161
176-
For more information about disabling the firewall, see [AUTOTITLE](/copilot/customizing-copilot/customizing-or-disabling-the-firewall-for-copilot-coding-agent).
162+
jobs:
163+
copilot-setup-steps:
164+
runs-on: arc-scale-set-name
165+
# ...
166+
```
177167

178-
> [!WARNING]
179-
> Disabling the firewall reduces isolation between {% data variables.product.prodname_copilot_short %} and your self-hosted environment. You must implement alternative network security controls to protect your environment.
168+
1. Disable {% data variables.copilot.copilot_coding_agent %}'s integrated firewall in your repository settings, as it is not compatible with self-hosted runners. Without disabling the firewall, runners will not be able to connect to {% data variables.product.prodname_copilot_short %}. You must configure your own network security controls before disabling the built-in firewall. For more information, see [AUTOTITLE](/copilot/customizing-copilot/customizing-or-disabling-the-firewall-for-copilot-coding-agent).
169+
170+
> [!WARNING]
171+
> Disabling the firewall reduces isolation between {% data variables.product.prodname_copilot_short %} and your self-hosted environment. You must implement alternative network security controls to protect your environment.
180172

181173
### Security considerations for self-hosted runners
182174

0 commit comments

Comments
 (0)