nerdexam
Microsoft

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

Implement and manage GitHub Actions workflows

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)
  • A
    11% (2)
  • B
    6% (1)
  • C
    78% (14)
  • D
    6% (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

#Workflow approvals#GitHub Environments#Deployment gates#Required reviewers

Community Discussion

No community discussion yet for this question.

Full GH-200 Practice