Enterprise security teams often comb through the administrative console looking for a specific toggle: "Do not use proprietary source code to train AI models." They do not find it. That absence tends to trigger immediate alarm.
At 365Finds, we see this exact confusion stall enterprise rollouts for weeks. The reality is counter-intuitive: there is no enterprise privacy toggle to disable model training because GitHub Copilot Business and GitHub Copilot Enterprise exclude customer code from model training by default, backed by contract.
The toggle people keep looking for belongs strictly to individual accounts.
Individual Accounts (Copilot Free / Pro)
└── Settings > Copilot > "Allow GitHub to use my data for AI model training" (Optional Opt-out)
Enterprise Accounts (Copilot Business / Enterprise)
└── Contractual Guarantee (DPA): Zero data retention for prompts & suggestions; NO model training.
├── Content Exclusion: Prohibits Copilot from reading designated repos/files
├── Public Code Match Filter: Blocks suggestions identical to public GitHub code
└── Policy Governance: Locks IDE extensions, models, and CLI access
The Training Toggle Confusion
On consumer plans (GitHub Copilot Free and Pro), GitHub explicitly retains prompt and suggestion data to fine-tune and train AI models unless the individual manually navigates to personal account settings and unticks "Allow GitHub to use my data for AI model training."
When an organization purchases GitHub Copilot Business or GitHub Copilot Enterprise, the legal and technical data pipeline changes completely:
- Zero Prompt and Suggestion Retention: GitHub processes code snippets and IDE context transiently in memory to generate completions or chat responses. Once returned to the developer's editor, the prompt and generated code are immediately discarded from server RAM.
- No Foundational Training: Neither GitHub nor its infrastructure partner Microsoft uses enterprise prompts, suggestions, or private repository data to train foundational or fine-tuned machine learning models.
- Governed by the DPA: This behavior is not an end-user preference that a developer can accidentally flip. It is enshrined in the GitHub Data Protection Agreement (DPA) and commercial terms.
Because model training is contractually and architecturally barred at the enterprise tier, GitHub simply does not render a "do not train" switch in the enterprise policy dashboard.
The Settings Enterprises Actually Need to Configure
While model training is off the table, transmitting proprietary code across network boundaries to LLM inference endpoints still requires governance. 365Finds recommends focusing security reviews on four actual administrative controls:
1. Content Exclusion (File and Repository Masking)
If your organization maintains proprietary cryptographic routines, proprietary trading algorithms, or compliance-restricted codebases that must never touch an inference server, you use Content Exclusion.
- Where it lives: Enterprise Settings > Policies > Copilot > Content exclusion, or at the Organization and Repository level.
- How it works: Administrators define path rules (using fnmatch syntax, such as
secret-algo/**or*.pem). When a developer opens a file matching an exclusion rule, the GitHub Copilot extension automatically disables itself in the IDE status bar. It will not parse the buffer, generate inline suggestions, or allow Copilot Chat to read that file. - The caveat: Content exclusion is a client-and-API gating mechanism, not an operating system sandbox. If an unexcluded file imports an interface or constant defined in an excluded file, the IDE's semantic language server might still pass partial type signatures as prompt context.
2. Suggestions Matching Public Code (Duplication Detection)
This policy controls whether Copilot can suggest code snippets that closely match public code available on GitHub (approximately 150 characters or longer).
- Where it lives: Enterprise Settings > Policies > Copilot > Suggestions matching public code.
- Setting choice: Set to Blocked.
- Why 365Finds insists on this: Beyond avoiding copyright contamination and restrictive open-source licenses (like GPL-3.0), enabling this filter is a prerequisite for GitHub's commercial Intellectual Property (IP) indemnification. Leaving it set to "Allowed" leaves your codebase legally exposed.
3. Model and Feature Access Controls
GitHub Copilot Enterprise allows teams to toggle third-party foundation models (such as Anthropic Claude or Google Gemini models alongside OpenAI) and agentic capabilities like Copilot in the CLI or Copilot Workspace.
- Where it lives: Enterprise Settings > Policies > Copilot.
- Practical consideration: Each model provider operates under enterprise data protection terms coordinated through GitHub, but internal risk committees may approve OpenAI inference while restricting newer multi-model routing. Enterprise admins can restrict model selection at the root enterprise level or delegate it to organization owners.
4. Enforce Enterprise Managed Users (EMU)
The single biggest operational privacy failure 365Finds observes in enterprise environments is identity confusion: developers signing into Visual Studio Code or JetBrains IDEs using their personal GitHub handle instead of their corporate SSO credential.
If an engineer uses a personal Copilot Pro license on a corporate laptop, their private code could be subject to personal data collection rules if they forgot to disable training in their personal settings. Provisioning enterprise seats exclusively through Enterprise Managed Users (EMU) via Okta, Entra ID, or Ping ensures corporate policies and zero-retention DPA terms apply unconditionally.
Ephemeral Completions vs. Persistent Agent Workflows
One crucial technical distinction often gets missed during internal compliance audits:
- IDE Inline Completions & Chat: Strictly ephemeral. No persistent storage.
- Agentic Workflows and Pull Request Summaries: Semi-persistent. When GitHub Copilot generates pull request summaries, audit logs, or multi-step agent transcripts (such as autonomous code reviews), those conversational artifacts and logs are retained within your GitHub Enterprise tenant for auditing and collaboration, in accordance with your organization's general repository retention policies.
GitHub Copilot does not train foundation models on enterprise source code. For security teams evaluating risk, the priority is not hunting down a non-existent training toggle, but configuring Content Exclusion rules on crown-jewel repositories and setting public code matching to "Blocked."
References
- GitHub Copilot Trust Center
- Exclude content from Copilot - GitHub Docs
- Content exclusion for GitHub Copilot
- Managing policies and features for GitHub Copilot in your enterprise
- Managing policies and features for GitHub Copilot in your organization
- Managing GitHub Copilot policies as an individual subscriber