GH-200 · Question #63
What is the right method to ensure users approve a workflow before the next step proceeds?
The correct answer is C. adding users as required reviewers for an environment. GitHub Actions environments support required reviewers, which force a workflow job to pause and wait for manual approval before proceeding. When a job references a deployment environment that has required reviewers configured, the workflow halts at that job until one of the desig
Question
What is the right method to ensure users approve a workflow before the next step proceeds?
Options
- Acreating a branch protection rule and only allow certain users access
- Bgranting users workflow approval permissions
- Cadding users as required reviewers for an environment
- Dgranting users repository approval permission
How the community answered
(18 responses)- A11% (2)
- B6% (1)
- C78% (14)
- D6% (1)
Explanation
GitHub Actions environments support required reviewers, which force a workflow job to pause and wait for manual approval before proceeding. When a job references a deployment environment that has required reviewers configured, the workflow halts at that job until one of the designated reviewers approves it. This is the correct mechanism for human gating in a workflow. Option A (branch protection rules) controls merges, not workflow progression. Options B and D describe non-existent GitHub permission types for workflow approval.
Topics
Community Discussion
No community discussion yet for this question.