Quiz 12 Question 17 of 20

An autonomous Copilot agent has been generating and merging its own pull requests for test file changes. A developer notices the agent has started modifying files in the /security/ directory, which contains authentication middleware and secrets configuration. The repository has a CODEOWNERS file. How should CODEOWNERS be used to prevent the agent from self-approving changes to these sensitive paths?

Select an answer to reveal the explanation.

Motivation