Skip to content

Commit b6035bd

Browse files
sophiethekingCopilotCopilot
authored
CCR: Copilot setup steps and firewall support [GA] (#62011)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 22e0a80 commit b6035bd

6 files changed

Lines changed: 31 additions & 11 deletions

File tree

content/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ You can customize {% data variables.product.prodname_copilot_short %}'s developm
2929
* [Give {% data variables.product.prodname_copilot_short %} a Windows development environment](#switching-copilot-to-a-windows-development-environment), instead of the default Ubuntu Linux environment
3030
* [Enable Git Large File Storage (LFS)](#enabling-git-large-file-storage-lfs)
3131

32+
{% data variables.copilot.copilot_code-review_short %} also runs in an ephemeral development environment, and you can customize it in the same ways described in this article. By default, {% data variables.copilot.copilot_code-review_short %} reuses your `copilot-setup-steps.yml` file, but you can also create a dedicated `copilot-code-review.yml` file to configure {% data variables.copilot.copilot_code-review_short %}'s environment independently of {% data variables.copilot.copilot_cloud_agent %}. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review#customizing-copilot-code-reviews-environment).
33+
3234
In addition, you can:
3335

3436
* [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/configure-secrets-and-variables)

content/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ children:
1010
- /use-hooks
1111
- /customize-the-agent-environment
1212
- /configure-secrets-and-variables
13-
- /customize-the-agent-firewall
1413
- /test-custom-agents
1514
contentType: how-tos
1615
---

content/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-firewall.md renamed to content/copilot/how-tos/copilot-on-github/customize-copilot/customize-the-firewall.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Customizing or disabling the firewall for GitHub Copilot cloud agent
3-
shortTitle: Customize the agent firewall
2+
title: Customizing or disabling the firewall for GitHub Copilot
3+
shortTitle: Customize the firewall
44
allowTitleToDifferFromFilename: true
5-
intro: 'Learn how to control the domains and URLs that {% data variables.copilot.copilot_cloud_agent %} can access.'
5+
intro: 'Learn how to control the domains and URLs that {% data variables.copilot.copilot_cloud_agent %} and {% data variables.copilot.copilot_code-review_short %} can access.'
66
versions:
77
feature: copilot
88
redirect_from:
@@ -12,18 +12,22 @@ redirect_from:
1212
- /copilot/how-tos/agents/copilot-coding-agent/customize-the-agent-firewall
1313
- /copilot/how-tos/agents/coding-agent/customize-the-agent-firewall
1414
- /copilot/how-tos/use-copilot-agents/cloud-agent/customize-the-agent-firewall
15+
- /copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-firewall
1516
contentType: how-tos
1617
category:
1718
- Configure Copilot
1819
---
1920

2021
> [!NOTE]
21-
> Firewall configuration has moved to the {% data variables.copilot.copilot_cloud_agent %} settings page. Previous configurations saved as Actions variables will be maintained on that page.
22+
> Firewall configuration is managed from the "Internet access" settings tab, which covers both {% data variables.copilot.copilot_cloud_agent %} and {% data variables.copilot.copilot_code-review_short %}. Previous configurations saved as Actions variables will be maintained on that page.
2223
2324
## Overview
2425

2526
By default, {% data variables.product.prodname_copilot_short %}'s access to the internet is limited by a firewall.
2627

28+
> [!NOTE]
29+
> {% data variables.copilot.copilot_code-review_short %} also supports firewall configuration, at both the organization and repository level, under its own section of the "Internet access" tab described below. This allows you to configure firewall rules for {% data variables.copilot.copilot_code-review_short %} independently of {% data variables.copilot.copilot_cloud_agent %}. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review#customizing-copilot-code-reviews-environment).
30+
2731
Limiting internet access helps manage data exfiltration risks. Unexpected behavior from {% data variables.product.prodname_copilot_short %}, or malicious instructions, could lead to code or other sensitive information being leaked to remote locations.
2832

2933
The firewall always allows access to a number of hosts that {% data variables.product.prodname_copilot_short %} uses to interact with {% data variables.product.github %}. By default, a recommended allowlist is also enabled to allow the agent to download dependencies.
@@ -56,11 +60,13 @@ For the complete list of hosts included in the recommended allowlist, see [AUTOT
5660

5761
## Configuring the firewall at the organization level
5862

59-
Organization owners can configure all firewall settings at the organization level. To access the firewall settings:
63+
Organization owners can configure all firewall settings at the organization level, for both {% data variables.copilot.copilot_cloud_agent %} and {% data variables.copilot.copilot_code-review_short %}. To access the firewall settings:
6064

6165
{% data reusables.profile.access_org %}
6266
{% data reusables.profile.org_settings %}
63-
{% data reusables.copilot.cloud-agent-settings %}
67+
{% data reusables.copilot.internet-access-settings %}
68+
69+
The "Internet access" page has separate sections for {% data variables.copilot.copilot_cloud_agent %} and {% data variables.copilot.copilot_code-review_short %}, so you can configure the following settings independently for each.
6470

6571
### Enabling or disabling the firewall
6672

@@ -88,13 +94,13 @@ Items added to the organization custom allowlist apply to all repositories in th
8894

8995
## Configuring the firewall at the repository level
9096

91-
Repository administrators can configure firewall settings at the repository level, including enabling or disabling the firewall, enabling or disabling the recommended allowlist, and managing a custom allowlist. Depending on the organization-level configuration, some of these settings may be locked.
97+
Repository administrators can configure firewall settings at the repository level, including enabling or disabling the firewall, enabling or disabling the recommended allowlist, and managing a custom allowlist. Depending on the organization-level configuration, some of these settings may be locked. The repository settings page also has separate sections for {% data variables.copilot.copilot_cloud_agent %} and {% data variables.copilot.copilot_code-review_short %}, so you can configure these settings independently for each.
9298

9399
To access the firewall settings:
94100

95101
{% data reusables.repositories.navigate-to-repo %}
96102
{% data reusables.repositories.sidebar-settings %}
97-
1. In the "Code & automation" section of the sidebar, click **{% data variables.product.prodname_copilot_short %}** then **{% data variables.copilot.copilot_cloud_agent_short %}**.
103+
1. In the "Code & automation" section of the sidebar, click **{% data variables.product.prodname_copilot_short %}** then **Internet access**.
98104

99105
### Enabling or disabling the firewall
100106

content/copilot/how-tos/copilot-on-github/customize-copilot/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ children:
88
- /customize-copilot-overview
99
- /add-custom-instructions
1010
- /customize-cloud-agent
11+
- /customize-the-firewall
1112
- /configure-mcp-servers
1213
- /copilot-spaces
1314
contentType: how-tos

content/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ If you're happy with the changes, you can accept a single suggestion from {% dat
6666
You can also invoke {% data variables.copilot.copilot_cloud_agent %} to implement suggested changes. To do this, you must:
6767

6868
* Enable {% data variables.copilot.copilot_code-review %} and {% data variables.copilot.copilot_cloud_agent %}.
69-
* On review comments from {% data variables.copilot.copilot_code-review %}, click **Fix with Copilot**. This creates a draft comment on the pull request, where you can instruct {% data variables.product.prodname_copilot_short %} to address specific feedback. You can then select whether {% data variables.product.prodname_copilot_short %} will create a new pull request against your branch or a commit to the same pull request with the suggestions applied.
69+
* On review comments from {% data variables.copilot.copilot_code-review %}, click **Fix with {% data variables.product.prodname_copilot_short %}**. This creates a draft comment on the pull request, where you can instruct {% data variables.product.prodname_copilot_short %} to address specific feedback. You can then select whether {% data variables.product.prodname_copilot_short %} will create a new pull request against your branch or a commit to the same pull request with the suggestions applied.
7070

7171
## Requesting a re-review from {% data variables.product.prodname_copilot_short %}
7272

@@ -91,12 +91,23 @@ To automatically request re-reviews from {% data variables.product.prodname_copi
9191
To make these available for {% data variables.copilot.copilot_code-review_short %} on {% data variables.product.github %}, configure:
9292

9393
* **Agent skills** in your repository (in `.github/skills`). If you want a skill to target review tasks, use a review-focused skill directory name such as `code-review`. For setup details, see [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/add-skills).
94-
* **MCP servers** in repository Copilot settings. The {% data variables.product.github %} MCP server and Playwright MCP server are enabled by default. For setup details, see [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers).
94+
* **MCP servers** in repository {% data variables.product.prodname_copilot_short %} settings. The {% data variables.product.github %} MCP server and Playwright MCP server are enabled by default. For setup details, see [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers).
9595

9696
{% data reusables.copilot.code-review.mcp-context-usage %}
9797

9898
{% data reusables.copilot.code-review.mcp-tools-setting %}
9999

100+
## Customizing {% data variables.copilot.copilot_code-review_short %}'s environment
101+
102+
{% data variables.copilot.copilot_code-review_short %} runs in an ephemeral development environment, similar to {% data variables.copilot.copilot_cloud_agent %}. You can customize this environment using a {% data variables.product.prodname_actions %} workflow file, in the same way you would for {% data variables.copilot.copilot_cloud_agent %}, for example, to preinstall tools or dependencies, or to switch to a different operating system. For more information on how to structure this file, see [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment).
103+
104+
You can use either of the following files to configure {% data variables.copilot.copilot_code-review_short %}'s environment:
105+
106+
* `.github/workflows/copilot-setup-steps.yml`: If you have already configured this file for {% data variables.copilot.copilot_cloud_agent %}, {% data variables.copilot.copilot_code-review_short %} will use the same configuration by default.
107+
* `.github/workflows/copilot-code-review.yml`: We recommend creating this file if you want to configure {% data variables.copilot.copilot_code-review_short %}'s environment independently of {% data variables.copilot.copilot_cloud_agent %}. If this file is present in your repository, it is used for {% data variables.copilot.copilot_code-review_short %} instead of `copilot-setup-steps.yml`.
108+
109+
You can also configure firewall rules to control the domains and URLs that {% data variables.copilot.copilot_code-review_short %} can access, at both the organization and repository level. These settings are configured separately from {% data variables.copilot.copilot_cloud_agent %}'s firewall settings, in their own section of the same "Internet access" tab. See [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-firewall).
110+
100111
## Providing feedback on {% data variables.product.prodname_copilot_short %}'s reviews
101112

102113
You can provide feedback on {% data variables.product.prodname_copilot_short %}'s comments directly within each comment. We use this information to improve the product and the quality of {% data variables.product.prodname_copilot_short %}'s suggestions.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
In the sidebar, under "Code, planning, and automation", click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} {% data variables.product.prodname_copilot_short %}**, and then click **Internet access**.

0 commit comments

Comments
 (0)