Domain 6 facts verified 26 August 2026. This page is current as of August 2026 and is based on GitHub documentation, GitHub terms, and the Copilot Trust Center.
Microsoft Learn — GH-300 study guide · GitHub Docs — Content exclusion for GitHub Copilot · GitHub Copilot Trust Center
What Domain 6 tests#
Domain 6 is the governance-and-safeguards slice of GH-300: content exclusions, enterprise and organization policies, public-code matching, output ownership, and troubleshooting. It is only 10–15% of the exam, and the details are specific.
Key point: content exclusions remove selected files from Copilot context and inline suggestions.
Content exclusions: what they do#
Content exclusions tell Copilot to ignore selected files. Excluded files do not receive inline suggestions, do not inform suggestions in other files, do not inform Copilot Chat responses, and are not reviewed in Copilot code review. Content exclusion for GitHub Copilot
What a content exclusion blocks
Content exclusions stop Copilot from using the file as context and stop inline suggestions in the affected file.
Content exclusion is a Copilot Business and Copilot Enterprise plan feature. Repository administrators can configure it for their repositories; organization owners can configure it for users assigned a Copilot seat through that organization; enterprise owners can configure it for the enterprise. Content exclusion for GitHub Copilot
Content exclusion scopes
Content exclusions are configurable at repository, organization, and enterprise level. There is no team-level or individual-user content exclusion scope.
Supported and unsupported surfaces#
Content exclusions apply to specific supported surfaces. The support table includes IDEs, GitHub website Chat in public preview, GitHub Mobile Chat in public preview, and Copilot code review, with per-surface differences for inline suggestions and Chat. Content exclusion availability table
| Surface | Support |
|---|---|
| VS Code, Visual Studio, JetBrains | Inline suggestions and Chat |
| Vim/Neovim | Inline suggestions |
| Xcode and Eclipse | Inline suggestions |
| GitHub website Chat | Public preview |
| GitHub Mobile Chat | Public preview |
| Copilot code review | Excluded files not reviewed |
| Copilot CLI | Not supported |
| Agent mode in Copilot Chat in IDEs | Not supported |
Where content exclusions apply
GitHub Copilot CLI and Agent mode in Copilot Chat in IDEs do not support content exclusion. The content-exclusion support table lists IDEs, GitHub website Chat in public preview, GitHub Mobile Chat in public preview, and Copilot code review; it does not list the cloud agent.
Configuring exclusions: repository, organization, enterprise#
At repository level, use Settings → Copilot → Content exclusion and enter one path pattern per line. At organization level, use Organization settings → Copilot → Content exclusion and enter repository references with path lists. At enterprise level, use AI controls → Copilot → Content exclusion; enterprise rules apply across the enterprise, while organization rules apply to users seated by that organization. Excluding content from GitHub Copilot
Here is a realistic organization or enterprise configuration:
"*":
- "**/.env"
- "**/.env.*"
- "**/secrets/**"
- "**/*.{pem,key,p12}"
- "**/customer-exports/**"
https://github.com/octo-org/payments-service.git:
- "/src/generated/vendor/**"
- "/docs/acquisition-targets/**"
- "secrets.json"
git@github.com:*/copilot-labs:
- "/__tests__/fixtures/private/**"
- "*.internal.md"Path syntax matters. A leading slash anchors the pattern at the repository root. A pattern without a slash, such as "secrets.json", can match anywhere. ** matches through directories, * matches characters in a path segment, ? matches one character, and brace patterns such as *.{pem,key,p12} match any listed extension. Patterns are case-insensitive and use Ruby fnmatch notation. Excluding content from GitHub Copilot
Repository settings use a simpler shape
In repository settings, you do not need repository keys. Enter a YAML-style list such as - "/scripts/**" or - "secrets.json". Organization and enterprise settings need repository-reference mappings because they can target multiple repositories and non-Git file locations.
Propagation and local reload#
After you add or change content exclusions, IDEs that already loaded settings can take up to 30 minutes to receive the change. You can reload manually: in VS Code, run Developer: Reload Window; in JetBrains IDEs and Visual Studio, close and reopen the application; in Vim/Neovim, exclusions are fetched each time you open a file. Testing changes to content exclusions
Propagation time
After a content exclusion changes, IDEs can take up to 30 minutes to receive the updated settings. For immediate testing, manually reload the IDE settings before debugging the path pattern.
Policy hierarchy and who can override what#
Copilot policies are set at the enterprise level first. Enterprise administrators can usually enable or disable a policy, or let organizations decide. Organization owners then manage policies for users licensed by the organization, unless the enterprise enforces the setting. GitHub Copilot policies for enterprises and organizations Managing Copilot in your organization Managing Copilot in your enterprise
Policy scope
The Copilot policy hierarchy is enterprise → organization. Copilot policy controls do not have team-level scope, and users cannot override Business or Enterprise policy with personal settings. When a user is assigned a Copilot Business or Enterprise seat, any active Pro, Pro+, or Max individual plan is automatically canceled and the user moves under the organization's policies.
When a user has seats from multiple organizations, some policies use the least restrictive organization setting, but sensitive settings can use the most restrictive setting. The suggestions-matching-public-code privacy policy is documented as most restrictive. Feature availability when policies conflict
Public-code matching and code references#
Copilot checks suggestions for matches with publicly available code. Depending on the setting, a match can be discarded or suggested with a code reference showing matching public GitHub files and license information when found. The check compares potential suggestions and about 150 characters of surrounding code against an index of public repositories on GitHub.com; private GitHub repositories and non-GitHub code are not included. GitHub Copilot code referencing
The public code matching filter is configurable
The behavior is setting-dependent. Blocked is the default for Copilot Business users, but Allow is a valid configuration that lets matching suggestions appear with references instead of blocking them.
Separate three concepts: exclusions remove selected files from context and suggestions; public-code matching checks generated output; code references are the visible attribution and license clues when matching suggestions are allowed or Block mode is unavailable. Finding public code that matches suggestions
Editor settings are not the same as content exclusions#
Editors also have local Copilot settings. Users can enable or disable completions globally or by language and configure suggestion behavior. These settings change whether suggestions appear locally; they do not create enterprise-grade content exclusions. Configuring GitHub Copilot in your environment
Use editor settings for preference, content exclusions for privacy boundaries, and Copilot policies for plan-wide feature, model, client, and privacy controls.
Ownership, responsibility, and output limits#
Current GitHub Generative AI Services Terms say GitHub does not own Inputs or Outputs, customers retain existing ownership in Inputs, and GitHub will not use Inputs or Outputs to train models without documented instructions. For subscriptions and renewals before 5 March 2026, the GitHub Copilot Product Specific Terms say GitHub does not own Suggestions and users retain ownership of their code. GitHub Generative AI Services Terms GitHub Copilot Product Specific Terms
Which terms govern IP
For applicable current subscriptions, Copilot output IP and ownership answers point to the GitHub Generative AI Services Terms. For subscriptions and renewals before 5 March 2026, use the GitHub Copilot Product Specific Terms.
Users are responsible for reviewing and validating suggestions before accepting them. Inline suggestions can be inaccurate, biased toward common patterns, semantically wrong, or risky in security-sensitive code. Mitigate with review, testing, secure practices, filters, and policy controls. Responsible use — inline suggestions
For Business and Enterprise, code snippets are not retained after suggestion generation, and code is not used for training. Do not publish unsupported precision such as a specific chat-retention number unless it appears in current official documentation. GitHub Copilot Trust Center
BYOK: what the acronym means#
What BYOK means
In Copilot administration, BYOK means Bring Your Own LLM API Key. It connects Copilot Chat, Copilot CLI, and IDEs to third-party or custom models using organization or enterprise API keys. Providers include Anthropic, AWS Bedrock, Google AI Studio, Microsoft Foundry, OpenAI, OpenAI-compatible providers, and xAI.
BYOK is model governance, not content exclusion. Organization custom models Enterprise custom models
Auditing privacy and safeguard changes#
Copilot audit logs include plan, setting, policy, license, and website agent activity events. Use action:copilot; events are retained for 180 days. For organization API access, remember GET /orgs/{org}/audit-log?phrase=action:copilot. Reviewing audit logs for GitHub Copilot
Audit logs do not include local prompt text. Reviewing audit logs for GitHub Copilot
Troubleshooting scenarios#
Still getting suggestions in an excluded file?
Check plan, scope, path pattern, and whether the IDE has reloaded or waited up to 30 minutes.
Exclusion works in VS Code but not CLI?
Copilot CLI does not support content exclusion, so verify the surface before debugging the YAML.
If Chat can still explain an excluded file, close other tabs, attach that file, and ask explain this file. If exclusion works, Copilot should not list the file as a reference. If it still does, reload the IDE, verify scope and path syntax, and confirm you are not using unsupported Agent mode. Testing content exclusions
If an exclusion seems partial, remember two limitations: Copilot may receive indirect semantic information from the IDE, and exclusions do not currently apply to symbolic links or repositories on remote filesystems. Content exclusion limitations
If public-code references do not appear, check whether the policy is Block. References appear when matching suggestions are allowed or Block mode is unavailable. Inline references are logged only for accepted Copilot suggestions that match public code. GitHub Copilot code referencing
Check yourself#
Question 1
What happens when a file is covered by a Copilot content exclusion?
A) Copilot can suggest inside the file but cannot use it for Chat context
B) Copilot cannot use it as context, inline suggestions are unavailable in it, and code review will not review it
C) Only Copilot CLI ignores the file
D) The file is removed from GitHub search results
Show answer
Answer: B. Exclusions stop context use, suggestions in affected files, Chat use, and code review of affected files.
Question 2
Which scopes can configure content exclusions?
A) Repository, organization, and enterprise
B) Organization, team, and user
C) Enterprise and team only
D) Individual user only
Show answer
Answer: A. Repository administrators, organization owners, and enterprise owners can configure them; teams and users cannot.
Question 3
A developer says a new exclusion is not working five minutes after it was saved in organization settings. What is the best first check?
A) Reinstall GitHub Desktop
B) Wait up to 30 minutes or manually reload the IDE settings
C) Convert the repo to public
D) Disable all Copilot policies at enterprise level
Show answer
Answer: B. IDEs can take up to 30 minutes; VS Code can reload, while JetBrains and Visual Studio can be closed and reopened.
Question 4
How does the suggestions-matching-public-code safeguard behave?
A) It always blocks matching suggestions
B) It only checks private repositories
C) It is setting-dependent: matching suggestions may be blocked or allowed with code references
D) It is controlled only by team settings
Show answer
Answer: C. Business defaults to Blocked, but Allow can show references instead.
Question 5
What does BYOK mean in Copilot model administration?
A) Bring Your Own Kubernetes
B) Bring Your Own encryption Key
C) Bring Your Own LLM API Key
D) Build Your Own Knowledgebase
Show answer
Answer: C. BYOK uses organization or enterprise LLM API keys.
Question 6
Which statement about Copilot policy hierarchy is correct?
A) Team settings override organization settings
B) User settings override enterprise settings
C) Enterprise policy is set first, then organization policy where delegated
D) Personal Pro settings remain active after a Business seat is assigned
Show answer
Answer: C. The hierarchy is enterprise to organization; there is no team scope, and personal plans are canceled when Business or Enterprise seats are assigned.
