Interview Prep/GitHub Actions/Secrets, Variables, Environments & Permissions

What is a custom deployment protection rule?

AdvancedConceptSecrets, Variables, Environments & Permissions
Answer

A GitHub App, enabled on an environment, that receives a deployment_protection_rule webhook when a job targets the environment and calls back with approve or reject. Use cases: block deploys outside change windows, require a ServiceNow change ticket, check Datadog for active incidents, or require a successful canary in staging. Several vendors ship ready-made apps; you can write your own. The job waits (without consuming minutes) until every rule approves.

All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, Variables, Environments & Permissions