Skip to main content

Enforcing policies for GitHub Copilot in your enterprise

You can enforce policies for GitHub Copilot for Business within your enterprise's organizations, or allow policies to be set in each organization.

Who can use this feature

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

GitHub Copilot can be managed through personal accounts with GitHub Copilot for Individuals or through organization or enterprise accounts with GitHub Copilot for Business.

About policies for GitHub Copilot in your enterprise

GitHub Copilot is a new AI-powered code completion tool that helps developers write code faster. GitHub Copilot is available through GitHub personal accounts with GitHub Copilot for Individuals or through organization or enterprise accounts with GitHub Copilot for Business.

You can enforce policies for GitHub Copilot for Business within your enterprise's organizations, or allow policies to be set in each organization.

If you set up a subscription for GitHub Copilot for Business, you can grant and revoke access to GitHub Copilot for organizations within your enterprise. Once you grant an organization access to GitHub Copilot, the admins of that organization can grant access to individuals and teams. For more information, see "Configuring GitHub Copilot settings in your organization."

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

GitHub Copilot includes a filter which detects code suggestions that match public code on GitHub. GitHub Copilot for Business lets you 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.

Enforcing a policy to manage the use of GitHub Copilot for Business in your enterprise

  1. In the enterprise account sidebar, click Policies.

  2. Under " Policies", click Copilot.

  3. Under "Manage organization access to GitHub Copilot," 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 GitHub Copilot for. Alternatively, you can select the organizations you want to disable GitHub Copilot access for.

    • 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. Click Save.

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

  1. In the enterprise account sidebar, click Policies.

  2. Under " Policies", click Copilot.

  3. Under "Suggestions matching public code," click the dropdown menu and select the policy you want to enforce.

    • To allow GitHub Copilot suggestions matching public code, select Allowed.
    • To block GitHub Copilot suggestions matching public code, select Blocked.
    • To allow each of your organizations to set their own policy on the use of GitHub Copilot suggestions matching public code, select No policy (let each organization decide).

    Screenshot of the GitHub Copilot policy page. The dropdown menu of suggestions that match public code settings is outlined in dark orange.

Further reading