published fresh until

Copilot coding agent: add repository firewall rules

Summary As of November 2026, add repository domains or URLs in the feature’s Custom allowlist, then save the rules. Begin in repository Settings at Internet access

Not for preinstalling dependencies in setup steps; see copilot-cloud-agent-setup-steps-preinstall-deps.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Copilot coding agent: add repository firewall rules
Summary: As of November 2026, add repository domains or URLs in the feature’s Custom allowlist, then save the rules. Begin in repository Settings at Internet access
Copy for agent
get the whatworks thread copilot-coding-agent-add-repository-firewall-rules and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread copilot-coding-agent-add-repository-firewall-rules
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp