At 365Finds, our policy recommendation for enterprise IT and engineering leaders is blunt: lock the public code matching policy to Block at the Enterprise level, and do not delegate that decision to individual organization managers.
Leaving this toggle to team discretion creates fragmented legal exposure. Worse, allowing matching code can forfeit protection under Microsoft's Customer Copyright Commitment, which requires enterprises to maintain duplication filtering guardrails to qualify for copyright infringement defense.
Here is how the duplication detection filter works, how to configure it across GitHub Enterprise Cloud, and the operational caveats you must account for in corporate environments.
What "Suggestions Matching Public Code" Actually Does
GitHub Copilot features an automated duplication detection filter designed to catch suggestions that replicate existing open-source code.
When a developer writes code in an IDE, Copilot generates candidate completions. Before rendering those suggestions:
- Copilot samples the candidate suggestion along with roughly 150 characters of surrounding code context.
- It performs an immediate lookup against an index of publicly accessible code repositories hosted on GitHub.
- If an exact or near-match is detected:
- Under Block: Copilot withholds the suggestion entirely. The developer sees nothing, preventing accidental inclusion of external code.
- Under Allow: Copilot outputs the code. In supported editors (such as VS Code, JetBrains IDEs, and Visual Studio), it triggers a code reference notification detailing the matching public repository, commit, and associated license.
365Finds views the "Allow with Code Referencing" mode as an administrative trap for enterprises. While code referencing provides transparency, expecting individual developers to review reciprocal licenses (such as AGPL or GPL) mid-sprint is unrealistic. Enforcing a hard block upstream is far safer.
Step-by-Step: Enforce "Block" at the Enterprise Account Level
If your company uses GitHub Enterprise Cloud with GitHub Copilot Business or GitHub Copilot Enterprise, enterprise owners should enforce this policy centrally.
Step 1: Access Enterprise AI Controls
- Sign in to GitHub with an account that has Enterprise Owner permissions.
- In the upper-right corner of GitHub, click your profile photo and navigate to Your enterprises, then select your enterprise account.
- In the top horizontal navigation bar, select AI controls.
- In the left navigation sidebar under Copilot, click Copilot (or Configure features & clients, depending on your dashboard interface version).
Step 2: Set the Duplication Policy
- Scroll down to the governance policies section to locate Suggestions matching public code.
- Open the dropdown menu. You will see three options:
- Block: Suppresses suggestions that match public code across all organizations.
- Allow: Permits matching code suggestions across all organizations.
- No policy / Let organizations decide: Delegates governance to child organization owners.
- Select Block.
- Confirm your selection. Once saved at the enterprise root, child organizations and individual developers cannot override this setting to "Allow".
Step-by-Step: Configure at the Organization Level
If your enterprise has delegated policy decisions, or if your organization operates standalone with GitHub Copilot Business:
- Navigate to your organization home page on GitHub (
https://github.com/organizations/<your-org>). - Click Settings in the top navigation bar.
- In the left sidebar, locate the Code, planning, and automation section and click Copilot, then select Policies.
- Find the Suggestions matching public code setting.
- In the dropdown selector, choose Blocked.
- Click Save to apply the configuration across all seats provisioned through that organization.
Critical Rules: Hierarchy, Conflicts, and Network Setup
Setting the toggle in the web UI is only half the battle. Enterprise administrators often run into three practical issues during deployment:
1. Inheritance and Conflict Precedence
Individual developers cannot bypass this restriction in their personal GitHub settings if their seat is billed through your enterprise or organization. If a developer belongs to multiple organizations within GitHub with conflicting policies, GitHub's governance engine applies the most restrictive policy. If Organization A sets "Block" and Organization B sets "Allow", Copilot forces "Block" for that user.
2. Network Proxy and Firewall Requirements
Copilot’s duplication detection is not performed entirely inside the base LLM inference stream; it communicates with GitHub's validation infrastructure. For the duplication filter to function correctly, developers' workstations and corporate proxies must allow outbound HTTPS traffic to:
https://origin-tracker.githubusercontent.com (Port 443)
If your network security team blocks this endpoint, suggestions may stall, fail silently, or cause Copilot plugins to report connection warnings.
3. Surface Limitations and Background Agents
The "Block" rule strictly intercepts standard inline code completions inside supported IDEs (VS Code, Visual Studio, JetBrains, Eclipse, Neovim). However, GitHub’s administrative documentation notes that certain autonomous agents, asynchronous background coding surfaces, and experimental CLI tools do not always support hard suppression; instead, they record detected matches and license references directly in session logs for post-execution review.
What the Filter Does Not Protect Against
365Finds considers this policy a necessary baseline, but teams must not mistake it for comprehensive intellectual property protection:
- Public Code Outside GitHub: The index scans public code repositories hosted on GitHub. Code hosted exclusively on independent Git servers, private repositories, or third-party platforms is not indexed for real-time duplicate suppression.
- Short Syntactic Patterns: Code fragments shorter than the ~150-character matching threshold (such as standard library idioms, routine boilerplate, or ubiquitous framework calls) will not trigger suppression.
- No Replacement for SCA: Upstream blocking reduces accidental ingestion, but it does not replace downstream Software Composition Analysis (SCA) tooling (such as Mend, Snyk, or GitHub Dependency Graph) for verifying build dependencies and container manifests.
Under Microsoft's Customer Copyright Commitment guidelines, customers must adhere to documented mitigation steps—including not disabling duplication detection—to maintain defense eligibility against third-party copyright claims.