GH-900 · Question #133
Which of the following outcomes can be achieved with a branch protection rule?
The correct answer is D. Require approval before merging changes. Managing a branch protection rule You can create a branch protection rule to enforce certain workflows for one or more branches, such as requiring an approving review or passing status checks for all pull requests merged into the protected branch…
Question
Which of the following outcomes can be achieved with a branch protection rule?
Options
- ARestrict who can view the branch.
- BBlock code pushes that contain hardcoded secrets.
- CRequire two-factor authentication (2FA) by code contributors.
- DRequire approval before merging changes.
How the community answered
(24 responses)- A4% (1)
- B4% (1)
- D92% (22)
Explanation
Managing a branch protection rule You can create a branch protection rule to enforce certain workflows for one or more branches, such as requiring an approving review or passing status checks for all pull requests merged into the protected branch. https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your- repository/managing-protected-branches/managing-a-branch-protection-rule
Topics
Community Discussion
No community discussion yet for this question.