Apply safeguards and troubleshoot
Unlock the complete study guide.
Bundled into the existing GitHub Copilot premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- What Copilot reads versus what it shows
- Who sets Suggestions matching public code
- How the match check works, and what it cannot see
- Allow mode: reading code references
- Surfaces where Block is not a complete block
- Content filters: what passing them does not prove
- IP defense and the now-optional public-code filter
- Troubleshooting starts with how far the failure reaches
- Service-side causes: incidents and rate limits
- Network failures: logs, firewalls and proxies
- Client and sign-in failures
- Suggestion problems confined to some files or one editor
- Verifying that a content exclusion works
- Scenarios: suggestions matching public code, content exclusions and troubleshooting
Input control versus output controls: what each safeguard acts on
| Question | Content exclusion (input control) | Suggestions matching public code: Block (output control) | Suggestions matching public code: Allow (output control) | Content filters (output control) |
|---|---|---|---|---|
| What it acts on | Which files Copilot may use as context on supported surfaces | Generated suggestions that match or nearly match indexed public code | The same matching suggestions | Generated content that is harmful, offensive or insecure |
| Who sets it | Repository administrators and organization or enterprise owners | The individual subscriber, or the organization or enterprise for managed seats | The individual subscriber, or the organization or enterprise for managed seats | GitHub runs them on generated suggestions |
| What the user sees | No inline suggestions in the excluded file; the file is not used as context | The matching suggestion is not shown on surfaces that support Block mode | The suggestion, plus a code reference with source and any license found | Blocked content is not shown |
| What it does not do | Filter what Copilot generates | Check private or off-GitHub code, or fully block cloud agent, Copilot CLI and third-party agents | Grant permission to use the matched code | Certify that output is correct or secure |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
References
- https://docs.github.com/en/copilot/concepts/completions/code-referencing
- https://docs.github.com/en/copilot/how-tos/troubleshoot-copilot/troubleshoot-common-issues
- https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/gh-300
- https://docs.github.com/en/copilot/concepts/context/content-exclusion
- https://docs.github.com/en/copilot/responsible-use/inline-suggestions
- https://docs.github.com/en/copilot/how-tos/manage-your-account/manage-policies
- https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-enterprise-policies
- https://docs.github.com/en/copilot/concepts/enterprise/policies
- https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-organization/manage-policies
- https://docs.github.com/en/copilot/reference/enterprise-administrators/policy-conflicts
- https://docs.github.com/en/copilot/concepts/completions/code-suggestions
- https://docs.github.com/en/copilot/reference/copilot-allowlist-reference
- https://docs.github.com/en/copilot/how-tos/get-code-suggestions/get-ide-code-suggestions
- https://docs.github.com/en/copilot/how-tos/get-code-suggestions/find-matching-code
- https://docs.github.com/en/copilot/responsible-use/chat
- https://docs.github.com/en/copilot/reference/supported-surfaces-for-policies
- https://docs.github.com/en/copilot/responsible-use/agents
- https://learn.microsoft.com/en-us/azure/foundry/responsible-ai/openai/customer-copyright-commitment
- https://docs.github.com/en/copilot/how-tos/troubleshoot-copilot/troubleshoot-network-errors
- https://docs.github.com/en/copilot/concepts/network-settings
- https://docs.github.com/en/copilot/how-tos/troubleshoot-copilot/view-logs
- https://docs.github.com/en/copilot/how-tos/administer-copilot/manage-for-enterprise/review-audit-logs
- https://code.visualstudio.com/updates
- https://docs.github.com/en/copilot/how-tos/configure-content-exclusion/exclude-content-from-copilot