Interview Prep/GitHub Actions/Secrets, Variables, Environments & Permissions

When does a job wait for environment approval, and what does the reviewer see?

IntermediateConceptSecrets, Variables, Environments & Permissions
Answer

When the job starts (after its needs are done), before a runner is assigned, so waiting costs no minutes. The run shows "Waiting for review: prod needs approval to start deploying changes." Reviewers get a notification and click "Review deployments", choose environments, optionally comment, approve or reject. Environment secrets are released to the job only after approval. A pending approval expires when the workflow run hits its 30-day limit for waiting jobs.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, Variables, Environments & Permissions