Spacelift Change Auto-Approval
Spacelift Change Auto-Approval
When a tracked Spacelift run stops in the Unconfirmed state, the Flow checks PagerDuty for open incidents on the affected service and ServiceNow for an approved change window covering the current time. If both checks pass, the run is confirmed automatically. Otherwise an approval request goes to Slack with the context attached — the triggering commit, active incidents, and change window state. Approvals confirm the run and add work notes with the run details and approver to the ServiceNow change request; rejections reject the run in Spacelift. Every decision is recorded in a change-decisions data table, and failures alert Slack while the run stays safely unconfirmed.
After importing, configure the Spacelift, PagerDuty, and ServiceNow app installations, set your stack ID on the Unconfirmed Run trigger and PagerDuty service ID on Check Active Incidents, and create a SLACK_CHANNEL_ID secret for the approval channel.