After deploying a preview app, you want GitHub to show the live URL on the environment and still require a reviewer before production. Which combination applies?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Job environment can set name and url for deployment display; protection rules (reviewers) are configured on the environment in repo settings.
Full explanation below image
Full Explanation
jobs.<id>.environment may be a string or an object with name and url. The URL surfaces in the deployments UI for that environment. Protection rules—required reviewers, wait timers, deployment branches—are configured on the environment, not inside permissions. Use distinct environments (preview vs production) with different rules and secrets. Topics do not replace deployment URLs. This pattern works on github.com without a special GHES-only add-on for basic environment URLs.