Interview Prep/CI/CD/GitHub Actions

Production deploys must be blocked during a freeze window.

BeginnerScenarioGitHub Actions
Answer

Situation read → Change freeze.

What I'd do →

  1. Use a custom deployment protection rule on the production environment (a GitHub App) that checks a calendar or feature flag.
  2. Or add a first job that queries a freeze API and fails with a clear message.
  3. Keep an emergency override that requires two approvers and is logged.

Why → The check is centralised, so teams cannot forget it.

Interview tip → Always provide a break-glass path; freezes with no override push people to bypass controls.

All CI/CD questions

More on GitHub Actions