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.
More on Secrets, Variables, Environments & Permissions
Where can secrets be defined, and what is the precedence?BeginnerHow are secrets protected in transit and in logs, and what are the limits?IntermediateAre secrets available to every step automatically?BeginnerWhy is it a bad idea to store structured data like JSON or a whole `.env` file as one secret?IntermediateWhat is an environment, and which protection rules can it have?BeginnerHow do deployment branch policies interact with tags and `workflow_dispatch`?Advanced