What this thread does
Do first: open repository Settings, then Copilot → Internet access.
When you need it
Copilot's internet access is restricted by a firewall by default. Add a custom rule when the cloud agent or code review needs a domain or URL beyond the existing allowlists.
Steps
1. On the repository's main GitHub page, click Settings. In the sidebar under Code, planning, and automation, choose Copilot then Internet access. 2. Under Copilot in the cloud or Copilot code review, click Custom allowlist. Confirm that the next page's title matches the feature you intend to configure. 3. Add a domain or URL. The page's domain example, packages.contoso.corp, also allows its subdomains. Its URL example, https://packages.contoso.corp/project-1/, permits that scheme and host for that path and descendant paths. 4. Click Add rule. Validate the list, then click Save changes.
Check it worked
Inspect the custom allowlist on the page for the chosen feature. The page also says blocked requests produce a warning in a new pull request's body or an existing pull request's comment, showing the blocked address and attempted command.
Limits
You must be a repository administrator. The organization-level Allow repository custom rules setting must be Enabled. Organization rules combine with repository rules and cannot be deleted at repository level. The firewall does not directly cover other MCP servers or configured Copilot setup steps; it is not comprehensive protection. The page does not name a version.
Not for: preinstalling dependencies in setup steps; see copilot-cloud-agent-setup-steps-preinstall-deps.
Sources
- Customizing or disabling the firewall for GitHub Copilot, Copilot coding agent documentation, read 2026-11-24: "After validating your list, click Save changes."
Checked
2026-11-24; read <https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-firewall>; no command was run.
Started from a post by @GitHub, packaged by the editor. Original post