Skip to main content

Managing policies and features for Copilot in your organization

Learn how to manage policies for Copilot Enterprise and GitHub Copilot Business in your organization.

谁可以使用此功能?

Organization owners can configure policies for GitHub Copilot for their organization.

About managing policies for GitHub Copilot

GitHub Copilot Enterprise and GitHub Copilot Business are GitHub Copilot subscriptions, managed at the enterprise and organization levels. Organization owners can manage policies for the use of GitHub Copilot within the organization. The policy settings selected by an organization owner determine the behavior of GitHub Copilot for all organization members granted access to Copilot through the organization.

Enterprise owners can manage policies for organizations within the enterprise. Where explicit settings have been selected at the enterprise level, an organization owner cannot override those settings at the organization level. For more information on managing policies at the enterprise level, see "在企业中为 GitHub Copilot 实施策略."

Configuring suggestion matching policies for GitHub Copilot in your organization

GitHub Copilot includes a filter which detects code suggestions that match public code on GitHub. Copilot checks code suggestions with their surrounding code of about 150 characters against public code on GitHub. If your suggestion matching policy is configured to block matching code, matching suggestions will not be shown to you.

If your enterprise admin has selected No policy for suggestion matching at the enterprise level, you can set a suggestion matching policy for your organization. If an organization member is assigned a seat by multiple organizations with different suggestion matching policies under the same enterprise, GitHub Copilot will use the most restrictive policy.

  1. 在 GitHub.com 的右上角,选择个人资料照片,然后单击 “你的组织”****。

    @octocat 的个人资料图片下的下拉菜单的屏幕截图。 “你的组织”以深橙色标出。

  2. 在组织旁边,单击“设置”。

  3. 在边栏的“代码、规划和自动化”部分中,按下“ Copilot”,然后按下“策略”。********

  4. Under "Policies", in the "Suggestions matching public code" dropdown, select Allowed or Blocked.

Enabling features of GitHub Copilot in your organization

If your enterprise admin has selected No policy for the following features, you can enable or disable these for your organization.

  • Suggestions matching public code
  • Copilot in GitHub.com (if your organization has a Copilot Enterprise subscription)
  • Copilot Chat in the IDE
  • Copilot in the CLI
  1. 在 GitHub.com 的右上角,选择个人资料照片,然后单击 “你的组织”****。

    @octocat 的个人资料图片下的下拉菜单的屏幕截图。 “你的组织”以深橙色标出。

  2. 在组织旁边,单击“设置”。

  3. 在边栏的“代码、规划和自动化”部分中,按下“ Copilot”,然后按下“策略”。********

  4. Use the dropdown options to the right of each feature to enable or disable that feature for your organization.

  5. If your organization has a Copilot Enterprise subscription and you enable Copilot in GitHub.com, the option Give Copilot access to Bing is displayed. Depending on your enterprise settings, you may be able to enable this option. When this option is enabled, Copilot Chat will use search results from Bing to answer some questions.

Further reading