如果公司采用防火墙或代理服务器等安全措施,则应将以下 URL、端口和协议添加到允许列表,以确保 Copilot 按预期工作:
GitHub 公共 URL
| 域和/或 URL | 目的 |
|---|---|
https://github.com/login/* | Authentication |
https://github.com/enterprises/YOUR-ENTERPRISE/* | 对 托管用户帐户 的身份验证,仅 Enterprise Managed Users 需要 |
https://api.github.com/user | 用户管理 |
https://api.github.com/copilot_internal/* | 用户管理 |
https://copilot-telemetry.githubusercontent.com/telemetry | 遥测 |
https://collector.github.com/* | 分析遥测 |
https://default.exp-tas.com | 遥测 |
https://copilot-proxy.githubusercontent.com | Copilot 建议的 API 服务 |
https://origin-tracker.githubusercontent.com | Copilot 建议的 API 服务 |
`https://*.githubcopilot.com/*`
[^1] | Copilot 建议的 API 服务 |
|
https://*.individual.githubcopilot.com
[^2] | Copilot 建议的 API 服务 |
|
https://*.business.githubcopilot.com
[^3] | Copilot 建议的 API 服务 |
|
https://*.enterprise.githubcopilot.com
[^4] | Copilot 建议的 API 服务 |
| https://*.SUBDOMAIN.ghe.com | 对于 GHE.com 上的 Copilot 用户 |
| https://SUBDOMAIN.ghe.com | 对于 GHE.com 上的 Copilot 用户 |
根据组织使用的安全策略和编辑器,可能需要将其他域和 URL 加入允许列表中。 有关特定编辑器的详细信息,请参阅延伸阅读。
代理服务器或防火墙的每个用户还需要配置自己的环境以连接到 Copilot。 请参阅“为 GitHub Copilot 配置网络设置”。
延伸阅读
-
Visual Studio 文档中的“Visual Studio Code 中的网络连接”
-
在 Microsoft 文档中,在防火墙或代理服务器后面安装和使用 Visual Studio 和 Azure 服务
[^1]: Allows access to authorized users regardless of Copilot plan. Do not add this URL to your allowlist if you are using subscription-based network routing. For more information on subscription-based network routing, see [AUTOTITLE](/copilot/managing-copilot/managing-copilot-for-your-enterprise/managing-access-to-copilot-in-your-enterprise/managing-github-copilot-access-to-your-enterprises-network). [^2]: Allows access to authorized users via a Copilot 个人版 plan. Do not add this URL to your allowlist if you are using subscription-based network routing. [^3]: Allows access to authorized users via a Copilot Business plan. Do not add this URL to your allowlist if you want to use subscription-based network routing to block users from using Copilot Business on your network. [^4]: Allows access to authorized users via a Copilot Enterprise plan. Do not add this URL to your allowlist if you want to use subscription-based network routing to block users from using Copilot Enterprise on your network.