Skip to main content

Managing policies and features for Copilot in your enterprise

Enterprise admins can enforce Copilot policies for organizations in their enterprise.

Who can use this feature?

Enterprise admins

Copilot Enterprise or Copilot Business

About policies for GitHub Copilot in your enterprise

If you have a subscription to Copilot Business or Copilot Enterprise, you can enforce policies for GitHub Copilot within your enterprise's organizations, or allow policies to be set in each organization.

Wherever a restrictive policy has been chosen at the enterprise level, an organization owner will not be able to select a more permissive policy at the organization level. In cases where no policy is selected at the enterprise level, and multiple organizations within the enterprise have chosen different policies and granted access to the same users, the most restrictive policy takes precedence for those users.

Enforcing a policy to manage the use of GitHub Copilot suggestions that match public code

GitHub Copilot includes a filter which detects code suggestions that match public code on GitHub. You can choose whether to enable or disable the filter at the enterprise level, or allow organization owners to decide at the organization level. When the filter is enabled, GitHub Copilot checks code suggestions with their surrounding code of about 150 characters against public code on GitHub. If there is a match or near match, the suggestion will not be shown.

  1. On the left side of the page, in the enterprise account sidebar, click Policies.
  2. In the " Policies" section, click Copilot.
  3. On the "GitHub Copilot" page, click the Policies tab.
  4. Next to "Suggestions matching public code," click the dropdown menu and select the policy you want to enforce.
    • To block GitHub Copilot suggestions matching public code, select Blocked.
    • To allow GitHub Copilot suggestions matching public code, select Allowed.
    • To allow each of your organizations to set their own policy on the use of GitHub Copilot suggestions matching public code, select No policy.

Enforcing a policy to manage the use of GitHub Copilot features on GitHub.com

With a Copilot Enterprise license, members of your enterprise can access AI features that enhance their experience on GitHub.com, such as the ability to chat with Copilot in the browser and reference context for Copilot across multiple repositories. For more information, see "GitHub Copilot Enterprise feature set."

You can enable or disable the use of these features for organizations in your enterprise. Alternatively, you can allow organization owners to select their own policy to determine access to the features for their organization.

  1. On the left side of the page, in the enterprise account sidebar, click Policies.

  2. In the " Policies" section, click Copilot.

  3. On the "GitHub Copilot" page, click the Policies tab.

  4. Next to "Copilot in GitHub.com," click the dropdown menu and select the policy you want to enforce.

    • No policy - Allow each of your organizations to set their own policy. "Copilot in GitHub.com" will initially be disabled for all organizations, but can be enabled by organization owners in their organization settings.
    • Enabled - Allow use of "Copilot in GitHub.com" by all members of organizations in your enterprise who have been granted access to Copilot.
    • Disabled - Prevent organizations from assigning Copilot Enterprise seats to members under the enterprise's Copilot Enterprise subscription.
  5. If you select Enabled for the "Copilot in GitHub.com" policy, the Opt in to user feedback collection check box is displayed.

    Clear the Opt in to user feedback collection check box to prevent the display of the thumbs up and thumbs down feedback icons after Copilot generates a pull request summary. The thumbs up and thumbs down feedback icons will still be displayed below each response in the Copilot Chat panel, and users will still be able to submit written feedback to GitHub about Copilot generally via the "Give feedback" link in the chat panel.

    If you select the Opt in to user feedback collection check box, then when a user clicks the thumbs up or thumbs down icon, after a pull request summary is generated, the summary will be returned to GitHub to provide context for the user's feedback.

    For more information about user feedback collection for Copilot, see "Using GitHub Copilot Chat in GitHub.com."

    Note

    If you choose No policy for the "Copilot in GitHub.com" option, user feedback collection will initially be enabled at the organization level, but organization owners can choose to opt out for their organization.

  6. Next to "Give Copilot access to Bing," click the dropdown menu and select the policy you want to enforce.

    • No policy - Allow each of your organizations to set their own policy. Access to Bing will initially be disabled for all organizations, but can be enabled by organization owners in their organization settings.

    • Enabled - Allow Copilot Chat to use results from a Bing web search to provide information for its responses. See "Using GitHub Copilot Chat in GitHub.com" and "Using GitHub Copilot Chat in your IDE."

    • Disabled - Prevent Copilot Chat from accessing Bing.

    Note

    Bing search integration into Copilot Chat in GitHub.com, VS Code, and Visual Studio is currently in beta and is subject to change.

Enforcing a policy to manage the use of GitHub Copilot Chat in IDEs

GitHub Copilot Chat is a feature that allows users to chat with GitHub Copilot to get code suggestions and answers to coding-related questions. You can enable or disable the use of GitHub Copilot Chat in IDEs for organizations in your enterprise. Alternatively, you can allow organization owners to select their own policy to determine access to GitHub Copilot Chat for their organization. For more information, see "About GitHub Copilot Chat in your IDE."

To manage the use of Copilot Chat in GitHub.com, see "Enforcing a policy to manage the use of GitHub Copilot features on GitHub.com."

  1. On the left side of the page, in the enterprise account sidebar, click Policies.
  2. In the " Policies" section, click Copilot.
  3. On the "GitHub Copilot" page, click the Policies tab.
  4. Next to "GitHub Copilot Chat in the IDE," click the dropdown menu and select the policy you want to enforce.
    • To allow each of your organizations to set their own policy on the use of GitHub Copilot Chat, select No policy.
    • To allow use of GitHub Copilot Chat, select Enabled.
    • To prevent use of GitHub Copilot Chat, select Disabled.

Enforcing a policy to manage the use of GitHub Copilot in the CLI

GitHub Copilot in the CLI is an extension for GitHub CLI which provides a chat-like interface in the terminal that allows you to ask questions about commands you run from the command line. You can enable or disable the use of Copilot in the CLI for organizations in your enterprise. Alternatively, you can allow organization owners to select their own policy for Copilot in the CLI for their organization. For more information, see "About GitHub Copilot in the CLI."

  1. On the left side of the page, in the enterprise account sidebar, click Policies.

  2. In the " Policies" section, click Copilot.

  3. Click the Policies tab.

  4. To the right of "GitHub Copilot in the CLI", select the dropdown menu, then choose the appropriate option.

    • To allow each of your organizations to set their own policy, select No policy.
    • To enable Copilot in the CLI for all organizations under your enterprise, select Enabled.
    • To disable Copilot in the CLI for all organizations under your enterprise, select Disabled.

Enforcing a policy to manage the use of GitHub Copilot Chat in GitHub Mobile

GitHub Copilot Chat in GitHub Mobile is a chat interface that lets you interact with GitHub Copilot, to ask and receive answers to coding-related questions within GitHub Mobile. You can enable or disable the use of Copilot Chat in GitHub Mobile for organizations in your enterprise. Alternatively, you can allow organization owners to select their own policy for Copilot Chat in GitHub Mobile for their organization. For more information, see "About GitHub Copilot Chat in GitHub Mobile."

  1. On the left side of the page, in the enterprise account sidebar, click Policies.

  2. In the " Policies" section, click Copilot.

  3. Click the Policies tab.

  4. To the right of "Copilot Chat in GitHub Mobile", select the dropdown menu, then choose the appropriate option.

    • To allow each of your organizations to set their own policy, select No policy.
    • To enable Copilot in the CLI for all organizations under your enterprise, select Enabled.
    • To disable Copilot in the CLI for all organizations under your enterprise, select Disabled.