Skip to main content

Como impor políticas do GitHub Copilot em sua empresa

Você pode exigir políticas para GitHub Copilot dentro das organizações de sua empresa ou permitir que as políticas sejam definidas em cada organização.

Quem pode usar esse recurso?

Enterprise owners can enforce policies for GitHub Copilot in an enterprise.

GitHub Copilot pode ser gerenciado por meio de contas pessoais com GitHub Copilot Individual, através de contas de organização ou de empresa com GitHub Copilot Business, ou através de contas de empresa com GitHub Copilot Enterprise.

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.

As an enterprise owner, you can grant and revoke access to GitHub Copilot for organizations within your enterprise. Once you grant an organization access to GitHub Copilot, the owners of that organization can grant access to individuals and teams. For more information, see "Copilot Business."

GitHub Copilot subscriptions are billed monthly, based on the number of seats assigned to users within your enterprise. For more information, see "About billing for GitHub Copilot."

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.

Managing access to GitHub Copilot in your enterprise

Enterprise owners can choose whether to grant access to GitHub Copilot for all, none, or a selection of organizations within the enterprise.

  1. In the enterprise account sidebar, click Policies.

  2. Under " Policies", click Copilot.

  3. In the "Copilot is active in your enterprise" section, configure the access for your GitHub Copilot subscription.

    • To disable GitHub Copilot for all organizations in your enterprise, select Disabled.
    • To enable GitHub Copilot for all organizations in your enterprise, both current and future, select Allow for: All organizations.
    • To enable GitHub Copilot for specific organizations, select Allow for specific organizations.
  4. If you selected Allow for specific organizations, select the organizations you want to enable or disable GitHub Copilot for. Then, click the Set organization permissions dropdown and select Enable or Disable to grant or deny GitHub Copilot access for the specified organizations.

    Screenshot of the GitHub Copilot policy page. The organization permissions dropdown is outlined in dark orange.

  5. Review your selection.

    • If you selected Disabled, you will see a warning that disabling GitHub Copilot will revoke access for all organizations and members. To confirm, click Confirm and save.
    • If you selected Allow for: All organizations or Allow for specific organizations, click Save.

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. In the enterprise account sidebar, click Policies.
  2. Under " Policies", click Copilot.
  3. On the "GitHub Copilot Business" or "GitHub Copilot Enterprise" management 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. In the enterprise account sidebar, click Policies.

  2. Under " Policies", click Copilot.

  3. On the "GitHub Copilot Business" or "GitHub Copilot Enterprise" management 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, two check boxes are displayed.

    • Give Copilot access to Bing - This is unselected by default. Select this check box to allow GitHub Copilot Chat to use Bing search results to provide information for its responses. For more information, see "Using GitHub Copilot Chat in GitHub.com."
    • Opt in to user feedback collection - This is selected by default. Clear this check box to prevent the display of the thumbs up and thumbs down feedback icons after Copilot generates a pull request summary. If you opt in to collection of user feedback, when a user selects one of these icons, the pull request summary will be returned to GitHub to provide context for the user's feedback. If you clear this check box, 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. For more information, see "Using GitHub Copilot Chat in GitHub.com."

    Notes:

    • If you choose No policy for the "Copilot in GitHub.com" option, user feedback will be allowed for any organization that enables GitHub Copilot Enterprise. Organization owners will be able to choose whether to allow Copilot to access Bing.
    • Bing search integration into Copilot Chat in GitHub.com 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."

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. In the enterprise account sidebar, click Policies.
  2. Under " Policies", click Copilot.
  3. On the "GitHub Copilot Business" or "GitHub Copilot Enterprise" management 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. In the enterprise account sidebar, click Policies.

  2. Under " Policies", 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.

Further reading