Quiz 7 Question 2 of 20

An agent is failing your team's code governance policy because it is committing changes directly to the 'main' branch instead of creating a feature branch. Branch protection rules are enabled on 'main,' causing the direct pushes to be rejected with a 403 error. The agent has no branch-based scope configured. What is the correct configuration change?

Select an answer to reveal the explanation.

Motivation