You want approvals only for prod but automatic deploys to dev and staging, with staging delayed 10 minutes for smoke checks. Configure.
BeginnerScenarioSecrets, OIDC & Environments
Answer
Situation read → Environment rules per stage.
What I'd do →
dev: no rules, deployment branchmain.staging: wait timer 10 minutes, deployment branchmain.prod: required reviewers, prevent self-review, branchesmainand tagsv*.- Chain with
needs: deploy-devthenneeds: deploy-staging.
Why → Rules live in environments, so the workflow stays simple.
Interview tip → Wait timers do not consume runner minutes.
More on Secrets, OIDC & Environments
You find AWS access keys stored as repo secrets in 25 repos. Plan the migration.IntermediateA developer asks to print a secret in the log "just once" to debug. What do you do instead?BeginnerStaging and prod need different database URLs and different AWS roles, using one workflow. How?BeginnerSecurity requires two people for prod deploys: the author cannot approve. Configure it.BeginnerWrite the AWS trust policy for a role used only by the prod deploy job of one repo.IntermediatePR workflows need read-only AWS access for `terraform plan`, including from same-repo branches. How do you set trust?Advanced