Interview Prep/GitHub Actions/Secrets, OIDC & Environments

Security requires two people for prod deploys: the author cannot approve. Configure it.

BeginnerScenarioSecrets, OIDC & Environments
Answer

Situation read → Separation of duties.

What I'd do →

  1. Prod environment: required reviewers = team release-approvers, enable "Prevent self-review", disable admin bypass.
  2. Deployment branches: main and tag pattern v* only.
  3. Branch protection on main with required PR reviews so the code itself had a second reviewer.

Why → Prevent self-review blocks the person who triggered the run from approving it.

Interview tip → Mention audit trail: approvals are recorded on the deployment and in the audit log.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, OIDC & Environments