Question 440
A maintainer using GitHub Copilot finds, the following condition is confirmed: A policy owner asks whether exclusion hides files from ordinary GitHub browsing. Which approach is the most defensible?
Explanation
Correct Answer
Select the action "Keep repository permissions separate from Copilot exclusions". Copilot exclusions do not replace GitHub repository access control. It is the specific match for the scenario in which A policy owner asks whether exclusion hides files from ordinary GitHub browsing.
Incorrect Answers
For the different scenario A repo administrator needs to exclude a sensitive file in one repository, "Define the relevant path exclusion under authorized repository settings" could be appropriate. Repository-scoped rules can govern file context for affected users. The present requirement is A policy owner asks whether exclusion hides files from ordinary GitHub browsing, which calls for "Keep repository permissions separate from Copilot exclusions". Copilot exclusions do not replace GitHub repository access control.
"Explain that inline suggestions can be unavailable in excluded files" targets A developer expects excluded files to still receive inline completions. Exclusion is intended to stop the affected inline suggestions. That differs from A policy owner asks whether exclusion hides files from ordinary GitHub browsing; the required decision here is "Keep repository permissions separate from Copilot exclusions". Copilot exclusions do not replace GitHub repository access control.
The action "Configure a supported organization content-exclusion rule" is useful when An organization wants an excluded directory omitted from supported Copilot inline context. Exclusion can suppress use of selected file contents in supported experiences. Under the stated condition A policy owner asks whether exclusion hides files from ordinary GitHub browsing, instead choose "Keep repository permissions separate from Copilot exclusions". Copilot exclusions do not replace GitHub repository access control.