If you manage GitHub Copilot for an engineering team, set the public code filter to Block. Do not leave it to individual choice, and do not treat it as a developer preference. At 365Finds, our stance is unequivocal: commercial development teams cannot afford accidental license contamination from copyleft repositories. GitHub Copilot gives administrators the exact switch needed to eliminate verbatim public code snippets before they enter your codebase.
Here is how administrators configure the block policy across organizations and enterprises, how the underlying filter operates, and why 365Finds recommends locking this setting down.
Configuring the Policy at the Organization Level
If your team uses GitHub Copilot Business or GitHub Copilot Enterprise managed under an organization:
- Sign in to GitHub and click your profile photo in the upper-right corner.
- Select Your organizations, then click Settings next to the target organization.
- In the left navigation bar, look under the Code, planning, and automation section and select Copilot (or click Policies under Copilot).
- Locate the setting labeled Suggestions matching public code.
- Open the dropdown menu and select Block.
- If a Save button appears, click it to apply the policy.
Once selected, GitHub Copilot will suppress any code suggestion where the generated snippet and its surrounding context match public code indexed on GitHub.
Configuring the Policy at the Enterprise Level
If your organization sits inside a GitHub Enterprise Cloud hierarchy, enterprise administrators can enforce this policy centrally across every child organization:
- Navigate to your GitHub Enterprise account overview page (
https://github.com/enterprises/<your-enterprise>). - In the left sidebar, click Settings, then navigate to Policies and select Copilot (or click Copilot > Policies).
- Find the Suggestions matching public code section.
- Select Block from the dropdown menu to enforce blocking across all linked organizations.
- Alternatively, selecting No policy delegates the decision to individual organization owners. At 365Finds, we advise against delegating this: enforce Block enterprise-wide so subsidiaries or spin-off orgs cannot inadvertently loosen compliance standards.
What the Public Code Filter Actually Does
Understanding the mechanism prevents false security expectations. GitHub Copilot does not parse entire software architectures or verify complete dependency trees.
When a completion model produces code:
- The system takes the suggested snippet alongside roughly 150 characters of surrounding code (approximately 65 lexemes or syntactic tokens).
- It compares this sequence against GitHub's index of public code repositories.
- If set to Block: The suggestion is discarded instantly. The developer sees nothing or receives an alternative completion that does not match public code.
- If set to Allow: The code suggestion appears in the editor. In supported IDEs (such as VS Code or Visual Studio), Copilot triggers "code referencing," surfacing match details, the originating repository URL, and the associated open-source license (such as MIT, Apache 2.0, or GPL).
The filter catches verbatim and near-verbatim repetition. It does not detect rewritten code that borrows architectural concepts or logic flows without using matching tokens.
How Policy Hierarchy and Conflicts Resolve
Administrators often ask what happens when developers belong to multiple organizations or have individual Copilot subscriptions:
- Enterprise overrides Organization: If the Enterprise administrator selects Block, organization owners cannot toggle the setting to Allow. The control in the child organization becomes locked.
- Organization overrides Personal: When a seat is provisioned by an organization, the organization's policy overrides whatever setting the developer selected in their personal GitHub user profile.
- Multi-Organization Seats: If an engineer holds active Copilot seat assignments in two different organizations with conflicting policies, GitHub defaults to the most restrictive policy. A "Block" setting in one organization supersedes an "Allow" setting in another.
The 365Finds Verdict: Why "Block" Is the Only Pragmatic Choice
Some engineering leaders hesitate to enable "Block" because they fear developer friction. Will Copilot withhold generic boilerplate? Will autocomplete feel sluggish?
Our assessment at 365Finds is that the productivity drop from blocking public code is negligible. The vast majority of Copilot completions are contextual synthesis tailored to your repository's local variable names and existing patterns. The suggestions that trigger the 150-character public match filter are typically verbatim blocks copied from existing open-source libraries.
If you set the policy to "Allow", your developers receive code referencing notifications. But in the daily rush of feature delivery, developers rarely click through code reference badges to review whether an unfamiliar repository carries a copyleft AGPL-3.0 license or requires explicit attribution headers. Permitting the snippet transfers intellectual property risk directly to the developer's attention span.
Blocking the suggestion at the administrative boundary eliminates that failure point entirely. GitHub Copilot continues to suggest non-matching patterns, proprietary IP remains unencumbered, and legal compliance teams avoid post-hoc codebase audits.