"GitHub Copilot security" is a common search, and the autocomplete behind it tells you what people worry about: "security concerns", "security controls", "security review", "best practices". This post answers the questions a security team will ask before approving Copilot Business or Enterprise, using GitHub's own documentation and its Copilot Trust Center.
What's Inside
- Training and retention, in GitHub's words
- The public-code filter and IP indemnity
- What content exclusion does, and what it doesn't
- The policies an admin should set before rollout
1. Is our code used for training?
GitHub's Trust Center is direct: "GitHub does not use Copilot Business or Enterprise customer data to train AI models." (1) It says the same of the third-party model providers it uses, with model-specific notes that are worth reading in full, since they change as models are added.
2. What is kept, and for how long?
The Trust Center splits Copilot use into two groups (1):
- IDE chat and completions, the Copilot app and the CLI: "Inputs and Outputs: Not retained by default." User engagement data is kept for two years.
- Other GitHub Copilot access and use: inputs and outputs are "retained for the life of the account."
The second group isn't itemised on that page, so ask which surfaces your developers will use and check each one.
3. Suggestions that match public code
Copilot has a duplicate-detection filter that an enterprise admin can turn on, or leave to each organization. It looks for matches of "65 lexemes or more (on average,150 characters)." (1) Set to Block, matching suggestions are suppressed. Set to Allow with code referencing, matches are shown with their source so a developer can check the licence.
GitHub says matches are uncommon: "Typically, matches to public code occur in less than one percent of Copilot inline suggestions." (2)
This setting also ties to indemnity. The Trust Center says Business and Enterprise customers get "uncapped IP indemnification for unmodified outputs" when they comply with the required mitigations: the filter set to Block, or Allow with code referencing. It also notes the filter doesn't apply to the Copilot coding agent. (1)
4. Content exclusion: useful, but not a boundary
Content exclusion lets you name files and paths Copilot shouldn't use. Excluded files get no inline suggestions, don't inform suggestions elsewhere, and "will not be reviewed in a Copilot code review." (3)
GitHub is clear about the limits:
- "Content exclusion is not a filesystem security boundary."
- It's "not guaranteed to be respected by third-party MCP servers or clients."
- Information from the IDE, such as type definitions, may still be used, and symlinks and remote filesystems aren't covered.
- Support varies by IDE and feature; check the support table before relying on it. (4)
So keep secrets out of repositories (secret scanning and push protection do that job; see GitHub Advanced Security: GitHub vs Azure DevOps), and use exclusion to keep sensitive-but-legitimate files out of prompts.
5. Policies to set before rollout
Copilot policies live under Settings, Copilot, Policies and Models. Enterprise settings win: "you cannot override that setting at the organization level." (5) Decide these before you hand out seats:
- Models. Which models developers can pick.
- MCP servers in Copilot. Whether Copilot can connect to MCP servers at all. See MCP Server Security: Risks and Best Practices.
- Preview features. Whether users can try features "that are not yet generally available."
- Public code matching and content exclusion, as above.
6. Certifications
The Trust Center says Copilot Business and Enterprise are included in GitHub's latest SOC 2 Type 2 report and in the scope of its ISO 27001 information security management system. A third-party penetration test report is available to Enterprise customers under NDA. (1)
Where to go from here
If you're choosing a plan, read GitHub Copilot Business vs Enterprise: Which to Buy. If you'd like someone to check your GitHub organization's settings against all of this, our GitHub Health Check covers Copilot policy alongside repository security. Send us a message to start.
Kevin Evans
Founder, Code To Cloud Inc.
Kevin Evans is a Microsoft MVP for Azure. He and the Code To Cloud team build Azure platforms for enterprise and mid-market teams, from developer platforms to AI agents in production. He spent nearly five years at Microsoft, rising to Senior Solutions Engineer, and is a CNCF Ambassador and Calgary chapter lead, based in the Calgary area, Alberta. More about Kevin
Frequently Asked Questions
Does GitHub train AI models on our code if we use Copilot Business or Enterprise?
No. GitHub's Copilot Trust Center says it does not use Copilot Business or Enterprise customer data to train AI models.
Does GitHub keep our prompts and code suggestions?
For Copilot in the IDE, the CLI and the Copilot app, GitHub's Trust Center says inputs and outputs are not retained by default. For other Copilot access and use, it says they are retained for the life of the account. Check the Trust Center for the current split.
Is content exclusion a security boundary?
No. GitHub's docs say content exclusion is not a filesystem security boundary and isn't guaranteed to be respected by third-party MCP servers or clients. Use it to reduce exposure, not to protect secrets.
Does GitHub offer IP indemnity for Copilot?
GitHub's Trust Center says Business and Enterprise customers are entitled to uncapped IP indemnification for unmodified outputs when they comply with the required mitigations, such as blocking suggestions that match public code.
Sources
Checked against GitHub's documentation and Copilot Trust Center on 3 December 2026.

