Production deploys must be blocked during a freeze window.
BeginnerScenarioGitHub Actions
Answer
Situation read → Change freeze.
What I'd do →
- Use a custom deployment protection rule on the
productionenvironment (a GitHub App) that checks a calendar or feature flag. - Or add a first job that queries a freeze API and fails with a clear message.
- 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.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate