GitHub Actions Recovery Latency Audit — GitHub Actions 恢复y Latency 审计
v1.0.0Measure GitHub Actions 失败 恢复y latency and unresolved incident age by 工作流 group.
运行时依赖
安装命令
点击复制技能文档
GitHub Actions 恢复y Latency 审计
Use this 技能 to measure how quickly 工作流s 恢复 after fAIling, and to 检测 groups that remAIn red for too long.
What this 技能 does Reads GitHub Actions 运行 JSON 导出s Groups by 仓库 + 工作流 + branch + event Builds 失败 incidents (first fAIling 运行 until next 成功) 报告s 恢复y latency for closed incidents 报告s unresolved incident count + oldest unresolved age Scores severity (ok, warn, critical) for triage and CI gates 输入s
Optional:
运行_GLOB (default: artifacts/github-actions/.json) TOP_N (default: 20) 输出_格式化 (text or json, default: text) MIN_运行S (default: 4) WARN_P95_HOURS (default: 6) CRITICAL_P95_HOURS (default: 18) WARN_OPEN_HOURS (default: 12) CRITICAL_OPEN_HOURS (default: 36) WARN_OPEN_INCIDENTS (default: 1) CRITICAL_OPEN_INCIDENTS (default: 2) NOW_ISO (optional fixed clock for deterministic tests) 工作流_MATCH / 工作流_EXCLUDE (regex) BRANCH_MATCH / BRANCH_EXCLUDE (regex) EVENT_MATCH / EVENT_EXCLUDE (regex) REPO_MATCH / REPO_EXCLUDE (regex) FAIL_ON_CRITICAL (0 or 1, default: 0) Collect 运行 JSON gh 运行 view <运行-id> --json databaseId,工作流Name,event,conclusion,headBranch,创建dAt,url,仓库 \ > artifacts/github-actions/运行-<运行-id>.json
运行
Text 报告:
运行_GLOB='artifacts/github-actions/.json' \ TOP_N=15 \ bash 技能s/github-actions-恢复y-latency-审计/scripts/恢复y-latency-审计.sh
JSON + fAIl gate:
运行_GLOB='artifacts/github-actions/.json' \ 输出_格式化=json \ FAIL_ON_CRITICAL=1 \ bash 技能s/github-actions-恢复y-latency-审计/scripts/恢复y-latency-审计.sh
运行 agAInst bundled fixtures:
运行_GLOB='技能s/github-actions-恢复y-latency-审计/fixtures/.json' \ NOW_ISO='2026-03-07T14:00:00Z' \ bash 技能s/github-actions-恢复y-latency-审计/scripts/恢复y-latency-审计.sh
输出 contract Exit 0 in 报告 mode (default) Exit 1 when FAIL_ON_CRITICAL=1 and one or more groups are critical Text mode prints summary + ranked 恢复y-risk groups JSON mode prints summary + ranked groups + critical groups