Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

GitHub Environment Deployment Status and Release Failure Sentinel

Audits GitHub deployment statuses across target environments to detect failed or rejected production software releases.

Categories
BusinessCloud

How it works

This workflow connects to the GitHub REST API (/repos/{owner}/{repo}/deployments) to query recent deployments targeting mission-critical environments (such as production or staging). It inspects the latest deployment status (success, failure, error). When deployments fail smoke tests, fail required approval gates, or crash during rollback procedures, an immediate incident alert is routed to the release channel on Slack.

What you get

  • Real-time detection of failed production deployments.
  • Prevents stalled releases from going unnoticed by engineering leads.
  • Immediate link to offending deployment IDs and environment targets.

Who it's for

  • Release Managers, DevOps Engineers, and SREs overseeing automated CI/CD deployments.
  • Software Developers tracking production rollouts after merging pull requests.

Why orchestrate this with Kestra

  • Reliable Automation: Continuously audit deployment health without standing up custom webhook servers.
  • Multi-Environment Tracking: Monitor across staging, canary, and production environments seamlessly.
  • Fast Rollback Orchestration: Can be chained directly to automated rollback workflows upon deployment failure.

Prerequisites

  • GitHub token with repo:status and repo_deployment permissions.
  • Secrets GITHUB_TOKEN and SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import this blueprint into Kestra.
  2. Configure target repository and environment name.
  3. Run the workflow to inspect latest deployment outcomes.

How to extend

  • Query deployment description and commit SHA to correlate with git changes.
  • Automatically rollback to the previous successful deployment SHA.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.