GH-200 practice question 9 of 15
What is the right method to ensure users approve a workflow before the next step proceeds?
Full set: 100 questionsTo require manual approval before a workflow job proceeds, you must configure an environment with required reviewers. When a workflow job references this environment, it will pause and wait for approval from at least one of the specified users or teams. This ensures that sensitive deployments or operations receive explicit sign-off before execution. This mechanism is a core feature of GitHub Actions for controlling deployments and is specifically tied to environments, not general repository or workflow permissions.
A. Branch protection rules safeguard branches from direct pushes or unapproved merges; they do not control the progression of individual workflow steps.
B. Granting workflow approval permissions is not a specific permission set in GitHub; approval is managed through environment protection rules.
D. Repository approval permissions relate to code reviews on pull requests, not approvals for running workflow jobs.
1. GitHub Docs. (2024). "Using environments for deployment". GitHub Docs. Retrieved from https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment. See the section "Required reviewers".
2. GitHub Docs. (2024). "Reviewing deployments". GitHub Docs. Retrieved from https://docs.github.com/en/actions/managing-workflow-runs/reviewing-deployments. This document details the process from the reviewer's perspective, confirming that environments are the mechanism for this control.
Keep practicing
Take the free GH-200 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GH-200 practice questions
- Question 1Which action type should be used to bundle a series of run steps into a reusable custom a…
- Question 2As a developer, which workflow steps should you perform to publish an image to the GitHub…
- Question 3Where should workflow files be stored to be triggered by events in a repository?
- Question 5Which default environment variable specifies the branch or tag that triggered a workflow?
- Question 6As a developer, what is the safest way to reference an action to prevent modification of …
- Question 7Without the need to use additional infrastructure, what is the simplest and most maintain…
