Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

GitHub Actions Workflow Execution Success Rate Sentinel

Audits GitHub Actions workflow runs to detect CI/CD pipeline failure spikes and deployment blockage.

Categories
CloudInfrastructure

How it works

This workflow calls the GitHub REST API (GET /repos/<owner>/<repo>/actions/runs) to sample the last 50 workflow executions. It aggregates total completed runs against those with conclusion == 'failure' to compute the failure percentage. When a broken base commit, flaky test suite, or third-party package mirror outage causes build failures to spike above the threshold, Slack is alerted immediately.

What you get

  • Real-time detection of widespread CI/CD pipeline breakage.
  • Prevents broken build commits from blocking engineering velocity.
  • Precise metrics on failure counts and failure rates across recent runs.

Who it's for

  • DevOps Engineers and Engineering Productivity Leads managing CI/CD pipelines.
  • Development teams shipping frequent code releases via GitHub Actions.

Why orchestrate this with Kestra

  • REST API Integration: Direct querying using standard GitHub REST endpoints.
  • Continuous Pipeline Telemetry: Run hourly audits without managing dedicated CI monitoring bots.
  • Contextual Notifications: Actionable failure metrics delivered directly to team Slack channels.

Prerequisites

  • GitHub Personal Access Token (PAT) with repo or actions:read permissions.
  • Secrets GITHUB_TOKEN and SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import blueprint into Kestra.
  2. Configure github_owner and github_repo.
  3. Run the workflow to inspect CI/CD success rate.

How to extend

  • Query specific critical workflows by workflow file name or ID.
  • Automatically disable pull request auto-merge when CI failure rate spikes.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.