Deployment Protection Rule

This event occurs when there is activity relating to deployment protection rules. For more information, see "Using environments for deployment." For information about the API to manage deployment protection rules, see the REST API documentation.

Actions

ActionSent when
requestedA deployment protection rule was requested for an environment.

Payload

Fields of the delivery for the first action above. Every action shares the event's core fields.

FieldTypeRequiredDescription
actionstringNo
environmentstringNoThe name of the environment that has the deployment protection rule.
eventstringNoThe event that triggered the deployment protection rule.
shastringNoThe commit SHA that triggered the workflow. Always populated from the check suite, regardless of whether a deployment is created.
refstringNoThe ref (branch or tag) that triggered the workflow. Always populated from the check suite, regardless of whether a deployment is created.
deployment_callback_urlstringNoThe URL to review the deployment protection rule.
deploymentobjectNoA request for a specific ref(branch,sha,tag) to be deployed
pull_requestsarray<object>No
repositoryobjectNoThe repository on GitHub where the event occurred. Webhook payloads contain the repository property
organizationobjectNoA GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an
installationobjectNoThe GitHub App installation. Webhook payloads contain the installation property when the event is configured
senderobjectNoA GitHub user.
Subscribing

To subscribe to this event, a GitHub App must have at least read-level access for the "Deployments" repository permission.