如果您的公司采用防火墙或代理服务器等安全措施,您应将以下 URL、端口和协议加入白名单,以确保 Copilot 正常工作。
GitHub 公共 URL
| 域名和/或 URL | 用途 |
|---|---|
https://github.com/login/* | 身份验证 |
https://github.com/enterprises/YOUR-ENTERPRISE/* | 受管用户帐户的身份验证,仅在使用企业受管用户时需要 |
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.com2 | Copilot 建议的 API 服务 |
https://*.business.githubcopilot.com3 | Copilot 建议的 API 服务 |
https://*.enterprise.githubcopilot.com4 | Copilot 建议的 API 服务 |
https://*.SUBDOMAIN.ghe.com | 适用于 GHE.com 上的 Copilot 用户 |
https://SUBDOMAIN.ghe.com | 适用于 GHE.com 上的 Copilot 用户 |
https://copilot-reports-*.b01.azurefd.net | Copilot 使用指标报告下载 |
根据贵组织使用的安全策略和编辑器,可能需要将其他域和 URL 加入白名单。有关特定编辑器的更多信息,请参阅进一步阅读。
代理服务器或防火墙的每位用户都需要配置各自的环境以连接 Copilot。请参阅为 GitHub Copilot 配置网络设置。
Copilot 云代理推荐白名单
Copilot 云代理内置防火墙,并默认启用推荐白名单。该推荐白名单允许访问以下内容:
- 常见操作系统包仓库(例如 Debian、Ubuntu、Red Hat)。
- 常见容器镜像仓库(例如 Docker Hub、Azure Container Registry、AWS Elastic Container Registry)。
- 流行编程语言(C#、Dart、Go、Haskell、Java、JavaScript、Perl、PHP、Python、Ruby、Rust、Swift)使用的包注册表。
- 常见证书颁发机构(用于验证 SSL 证书)。
- 用于下载 Playwright MCP 服务器的网页浏览器的主机。
有关配置 Copilot 云代理防火墙的更多信息,请参阅自定义或禁用 GitHub Copilot 云代理的防火墙。
该白名单允许访问以下主机
Azure 基础设施:元数据服务
168.63.129.16
证书颁发机构:DigiCert
crl3.digicert.comcrl4.digicert.comocsp.digicert.com
证书颁发机构:Symantec
ts-crl.ws.symantec.comts-ocsp.ws.symantec.coms.symcb.coms.symcd.com
证书颁发机构:GeoTrust
crl.geotrust.comocsp.geotrust.com
证书颁发机构:Thawte
crl.thawte.comocsp.thawte.com
证书颁发机构:VeriSign
crl.verisign.comocsp.verisign.com
证书颁发机构:GlobalSign
crl.globalsign.comocsp.globalsign.com
证书颁发机构:SSL.com
crls.ssl.comocsp.ssl.com
证书颁发机构:IdenTrust
crl.identrust.comocsp.identrust.com
证书颁发机构:Sectigo
crl.sectigo.comocsp.sectigo.com
证书颁发机构:UserTrust
crl.usertrust.comocsp.usertrust.com
容器注册表:Docker
172.18.0.1ghcr.ioregistry.hub.docker.com*.docker.io*.docker.comproduction.cloudflare.docker.comauth.docker.ioquay.iomcr.microsoft.comgcr.iopublic.ecr.aws
GitHub:内容与 API
*.githubusercontent.comraw.githubusercontent.comobjects.githubusercontent.comlfs.github.comgithub-cloud.githubusercontent.comgithub-cloud.s3.amazonaws.comcodeload.github.comscanning-api.github.comapi.mcp.github.comuploads.github.com/copilot/chat/attachments/
GitHub:Actions 工件存储
productionresultssa0.blob.core.windows.netproductionresultssa1.blob.core.windows.netproductionresultssa2.blob.core.windows.netproductionresultssa3.blob.core.windows.netproductionresultssa4.blob.core.windows.netproductionresultssa5.blob.core.windows.netproductionresultssa6.blob.core.windows.netproductionresultssa7.blob.core.windows.netproductionresultssa8.blob.core.windows.netproductionresultssa9.blob.core.windows.netproductionresultssa10.blob.core.windows.netproductionresultssa11.blob.core.windows.netproductionresultssa12.blob.core.windows.netproductionresultssa13.blob.core.windows.netproductionresultssa14.blob.core.windows.netproductionresultssa15.blob.core.windows.netproductionresultssa16.blob.core.windows.netproductionresultssa17.blob.core.windows.netproductionresultssa18.blob.core.windows.netproductionresultssa19.blob.core.windows.net
编程语言与包管理器:C# / .NET
nuget.orgdist.nuget.orgapi.nuget.orgnuget.pkg.github.comdotnet.microsoft.compkgs.dev.azure.combuilds.dotnet.microsoft.comdotnetcli.blob.core.windows.netnugetregistryv2prod.blob.core.windows.netazuresearch-usnc.nuget.orgazuresearch-ussc.nuget.orgdc.services.visualstudio.comdot.netdownload.visualstudio.microsoft.comdotnetcli.azureedge.netci.dot.netwww.microsoft.comoneocsp.microsoft.comwww.microsoft.com/pkiops/crl/
编程语言与包管理器:Dart
pub.devpub.dartlang.orgstorage.googleapis.com/pub-packages/storage.googleapis.com/dart-archive/
编程语言与包管理器:Go
go.devgolang.orgproxy.golang.orgsum.golang.orgpkg.go.devgoproxy.iostorage.googleapis.com/proxy-golang-org-prod/
编程语言与包管理器:Haskell
haskell.org*.hackage.haskell.orgget-ghcup.haskell.orgdownloads.haskell.org
编程语言与包管理器:Java
www.java.comjdk.java.netapi.adoptium.netadoptium.netsearch.maven.orgmaven.apache.orgrepo.maven.apache.orgrepo1.maven.orgmaven.pkg.github.commaven-central.storage-download.googleapis.commaven.google.commaven.oracle.comjcenter.bintray.comoss.sonatype.orgrepo.spring.iogradle.orgservices.gradle.orgplugins.gradle.orgplugins-artifacts.gradle.orgrepo.grails.orgdownload.eclipse.orgdownload.oracle.com
编程语言与包管理器:Node.js / JavaScript
npmjs.orgnpmjs.comregistry.npmjs.comregistry.npmjs.orgskimdb.npmjs.comnpm.pkg.github.comapi.npms.ionodejs.orgyarnpkg.comregistry.yarnpkg.comrepo.yarnpkg.comdeb.nodesource.comget.pnpm.iobun.shdeno.landregistry.bower.iobinaries.prisma.sh
编程语言与包管理器:Perl
cpan.orgwww.cpan.orgmetacpan.orgcpan.metacpan.org
编程语言与包管理器:PHP
repo.packagist.orgpackagist.orggetcomposer.org
编程语言与包管理器:Python
pypi.python.orgpypi.orgpip.pypa.io*.pythonhosted.orgfiles.pythonhosted.orgbootstrap.pypa.ioconda.binstar.orgconda.anaconda.orgbinstar.organaconda.orgdownload.pytorch.orgrepo.continuum.iorepo.anaconda.com
编程语言与包管理器:Ruby
rubygems.orgapi.rubygems.orgrubygems.pkg.github.combundler.rubygems.orggems.rubyforge.orggems.rubyonrails.orgindex.rubygems.orgcache.ruby-lang.org*.rvm.io
编程语言与包管理器:Rust
crates.ioindex.crates.iostatic.crates.iosh.rustup.rsstatic.rust-lang.org
编程语言与包管理器:Swift
download.swift.orgswift.orgcocoapods.orgcdn.cocoapods.org
基础设施与工具:HashiCorp
releases.hashicorp.comapt.releases.hashicorp.comyum.releases.hashicorp.comregistry.terraform.io
基础设施与工具:JSON Schema
json-schema.orgjson.schemastore.org
基础设施与工具:Playwright
playwright.download.prss.microsoft.comcdn.playwright.devplaywright.azureedge.netplaywright-akamai.azureedge.netplaywright-verizon.azureedge.netstorage.googleapis.com/chrome-for-testing-public
Linux 包管理器:Ubuntu
archive.ubuntu.comsecurity.ubuntu.comppa.launchpad.netkeyserver.ubuntu.comazure.archive.ubuntu.comapi.snapcraft.io
Linux 包管理器:Debian
deb.debian.orgsecurity.debian.orgkeyring.debian.orgpackages.debian.orgdebian.map.fastlydns.netapt.llvm.org
Linux 包管理器:Fedora
dl.fedoraproject.orgmirrors.fedoraproject.orgdownload.fedoraproject.org
Linux 包管理器:CentOS
mirror.centos.orgvault.centos.org
Linux 包管理器:Alpine
dl-cdn.alpinelinux.orgpkg.alpinelinux.org
Linux 包管理器:Arch
mirror.archlinux.orgarchlinux.org
Linux 包管理器:SUSE
download.opensuse.org
Linux 包管理器:Red Hat
cdn.redhat.com
Linux 包管理器:常见包源
packagecloud.iopackages.cloud.google.compackages.microsoft.com
其它
dl.k8s.iopkgs.k8s.io
延伸阅读
- Visual Studio Code 中的网络连接(Visual Studio 文档)
- 在防火墙或代理服务器后安装和使用 Visual Studio 与 Azure 服务(Microsoft 文档)
脚注
-
允许所有已授权用户访问,无论其 Copilot 计划如何。如果您使用基于订阅的网络路由,请勿将此 URL 加入白名单。有关基于订阅的网络路由的更多信息,请参阅管理 GitHub Copilot 对您企业网络的访问。↩
-
允许通过 Copilot 个人计划访问已授权用户。如果您使用基于订阅的网络路由,请勿将此 URL 加入白名单。↩
-
允许通过 Copilot 商业计划访问已授权用户。如果您想使用基于订阅的网络路由来阻止网络中的用户使用 Copilot Business,请勿将此 URL 加入白名单。↩
-
允许通过 Copilot 企业计划访问已授权用户。如果您想使用基于订阅的网络路由来阻止网络中的用户使用 Copilot Enterprise,请勿将此 URL 加入白名单。↩