跳至主要内容

管理 GitHub Copilot 对组织网络的访问

了解如何使用基于订阅的网络路由来控制 Copilot 对您网络的访问。

谁可以使用此功能?

组织所有者

Copilot Business

关于基于订阅的 Copilot 网络路由

作为企业或组织所有者,您可以使用网络防火墙显式允许访问 GitHub Copilot Business、GitHub Copilot Enterprise,或两者,同时阻止访问 GitHub Copilot Pro 或 GitHub Copilot Free。这使您能够控制成员在网络中可使用的 Copilot 计划。

配置基于订阅的 Copilot 网络路由将影响以下 Copilot 功能

  • 在 Visual Studio Code、Visual Studio、JetBrains IDE 和 Vim/NeoVim 中的 Copilot 行内建议
  • Visual Studio Code、Visual Studio 和 JetBrains IDE 中的 Copilot Chat
  • GitHub 上的 Copilot Chat
  • GitHub 移动应用
  • Copilot CLI

基于订阅的 Copilot 网络路由已对所有用户启用。这确保用户通过其 Copilot 计划特定的端点访问 Copilot。只有 Copilot Business 用户能够连接到 Copilot Business 端点,只有 Copilot Enterprise 用户能够连接到 Copilot Enterprise 端点。

确保持续访问 Copilot 的关键步骤

您应确保防火墙允许访问 Copilot 允许列表参考 中列出的所有主机名。

为您的企业或组织配置基于订阅的 Copilot 网络路由

企业或组织所有者可以将 Copilot Business、Copilot Enterprise 或两者的端点添加到允许列表中。这将确保成员只能通过已批准的端点访问 Copilot。

注意

如果您的企业账户同时包含 Copilot Business 和 Copilot Enterprise 计划,请确保两个端点都已添加到允许列表中。

  1. 确保您的成员已将其 Copilot 客户端升级至下表列出的最低版本。

    • 对于 Visual Studio Code,请使用 Copilot Chat 0.17 版或更高版本。
    • 对于 JetBrains IDE,请使用 Copilot 1.5.6.5692 版或更高版本。
    • 对于 Visual Studio,请使用 VS 2022 17.11 版或更高版本。
  2. 在公司网络防火墙的允许列表中加入以下一路径之一或两者

    • 对于 Copilot Business 计划,添加 *.business.githubcopilot.com

    • 对于 Copilot Enterprise 计划,添加 *.enterprise.githubcopilot.com

    注意

    这里的 * 表示通配符。由于 Copilot 正常运行需要多个子域名,必须使用通配符。

  3. 在公司网络防火墙的阻止列表中加入 *.individual.githubcopilot.com

© . This site is unofficial and not affiliated with GitHub, Inc.