GitHub announced on September 2, 2026 that the GitHub Copilot App and Copilot CLI now respect content-exclusion policies configured by enterprise, organization, and repository administrators. For Copilot Business and Enterprise customers, excluded files should no longer be used as context in these agentic surfaces.
This matters when repositories contain production-like test data, private fixtures, security reports, credentials documentation, or generated artifacts that an AI agent should not inspect. The change extends a centrally managed control to workflows that can explore repositories and execute longer tasks, but GitHub documents important limitations that QA teams should test.
What changed
- Copilot App and CLI: both now honor configured content exclusions, according to GitHub’s September 2 release note.
- Central administration: repository administrators, organization owners, and enterprise owners can configure exclusions within their scope.
- Broader effect: GitHub says excluded content should not inform inline suggestions or Copilot responses and should not be reviewed by Copilot code review.
- Plan availability: content exclusion is available to organizations using Copilot Business or Copilot Enterprise.
Why this matters for QA engineers
QA repositories often contain sensitive material outside application source code: sanitized-but-private datasets, vulnerability reproductions, customer-shaped payloads, recorded browser sessions, internal endpoints, and test credentials. A policy that works in an editor but not in an autonomous CLI or desktop agent creates an inconsistent control boundary. This release gives teams one more place to enforce that boundary centrally.
Content exclusion is still a context control, not a complete data-loss-prevention system. GitHub notes that an IDE can indirectly expose semantic information such as symbol types or project configuration. The documentation also says exclusions currently do not apply to symbolic links or repositories on remote filesystems, and support varies by Copilot surface and mode.
A focused QA validation checklist
- Create a disposable repository with a harmless canary in an excluded fixture file and a second canary in an allowed file. Never use real secrets for this test.
- Apply exclusions at repository, organization, and enterprise levels, then confirm policy changes propagate to the Copilot App and CLI for newly started and already-open sessions.
- Ask each surface direct, indirect, and cross-file questions. The allowed canary may be returned; the excluded canary must not appear in prompts, answers, summaries, patches, logs, or code-review findings.
- Repeat through a symbolic link and, where relevant, a remote filesystem. Treat GitHub’s documented gaps as explicit risk cases, not expected protection.
- Change an excluded file and request Copilot code review. Confirm the file is omitted from AI review while deterministic linters, secret scanning, and human review still run.
- Test rename, move, case variation, nested path, branch switch, submodule, generated-file, and policy-removal scenarios. Record repository identity, policy revision, client version, session ID, and timestamps.
- Verify failure behavior when policy retrieval is unavailable or stale. A team should know whether the client blocks, warns, or continues before relying on the control.
Do not confuse exclusion with access control
An excluded file can still be readable by a user, process, test runner, or other tool that already has filesystem permission. Keep sensitive test assets behind normal least-privilege access controls, use synthetic data, scan repositories for secrets, restrict agent tools and network access, and audit outputs. Content exclusions reduce what Copilot should use as context; they do not replace repository permissions or runtime sandboxing.
Bottom line
GitHub Copilot content exclusions reaching the App and CLI closes a meaningful policy-consistency gap for agentic development. QA teams should now run a canary-based verification across every enabled surface, document the symlink and remote-filesystem limitations, and keep independent security controls in place.
Sources
- GitHub Changelog: Content exclusions generally available in Copilot App and CLI (September 2, 2026).
- GitHub Docs: Content exclusion for GitHub Copilot (accessed September 3, 2026).
