Interview Prep/GitHub Actions/Secrets, OIDC & Environments

A prod deploy waits for approval, but on-call is asleep and the fix is urgent. Design break-glass.

IntermediateScenarioSecrets, OIDC & Environments
Answer

Situation read → Need speed without silently bypassing controls.

What I'd do →

  1. Separate environment prod-emergency with a small senior approver group and its own AWS role, deploy branches hotfix/* and main.
  2. workflow_dispatch with reason input written to the summary and posted to an incident channel.
  3. Alert security on every use (audit log streaming rule).
  4. Post-incident review of every emergency deploy.

Why → A documented, audited fast path beats admins bypassing protection rules.

Interview tip → Emphasize auditability over speed alone.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, OIDC & Environments