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 invoiced GitHub Enterprise Cloud accounts with GitHub Copilot for Business.

GitHub Enterprise Cloud accounts paying through credit card or PayPal, and organizations on the GitHub Team or GitHub Free plans cannot manage GitHub Copilot for their members at this time. If you are interested in managing GitHub Copilot through your GitHub Enterprise Cloud account paying through credit card or PayPal, or your organization on the GitHub Team or GitHub Free plan, you can contact sales and request to join the waitlist.

About policies for GitHub Copilot in your enterprise

GitHub Copilot is a new AI-powered code completion tool that helps you write code faster. GitHub Copilot is available through GitHub personal accounts with GitHub Copilot for Individuals and through GitHub Enterprise Cloud with GitHub Copilot for Business. For more information, see "About GitHub Copilot."

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 "GitHub Copilot pricing for GitHub Enterprise Cloud."

GitHub Copilot includes a filter which detects code suggestions matching 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 admins 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 sidebar, click Policies. Policies tab in the enterprise account sidebar

  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.

    Screenshot of the GitHub Copilot organization access settingsair

  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 Set organization permissions and select Enable or Disable to grant or deny GitHub Copilot access for the specified organizations.

    Screenshot of the GitHub Copilot organization permissions enabled or disabled settings

  5. Click Save changes.

    Screenshot of the GitHub Copilot save organization permissions

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

  1. In the enterprise sidebar, click Policies. Policies tab in the enterprise account sidebar

  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 suggestions matching public code settings

Further reading