GitHub Actions Incident Timeline Audit — GitHub Actions Incident Timeline 审计
v1.0.0Cluster fAIled GitHub Actions 运行s into incident windows by repo to expose outage duration, impact scope, and escalation severity.
运行时依赖
安装命令
点击复制技能文档
GitHub Actions Incident Timeline 审计
Use this 技能 to convert noisy fAIled 运行 导出s into incident windows you can triage quickly during CI reliability reviews.
What this 技能 does Reads GitHub Actions 运行 JSON 导出s Keeps only fAIled/cancelled/timed-out style outcomes Groups 失败s by 仓库 into incident windows using a configurable gap threshold Scores each incident using fAIled-运行 and duration thresholds Emits text or JSON 输出 for review docs, ops 仪表盘s, and CI fAIl gates 输入s
Optional:
运行_GLOB (default: artifacts/github-actions/.json) TOP_N (default: 20) 输出_格式化 (text or json, default: text) INCIDENT_GAP_MINUTES (default: 45) WARN_FAILED_运行S (default: 2) CRITICAL_FAILED_运行S (default: 4) WARN_DURATION_MINUTES (default: 20) CRITICAL_DURATION_MINUTES (default: 60) 工作流_MATCH (regex, optional) 工作流_EXCLUDE (regex, optional) REPO_MATCH (regex, optional) REPO_EXCLUDE (regex, optional) FAIL_ON_CRITICAL (0 or 1, default: 0) Collect 运行 JSON gh 运行 view <运行-id> --json databaseId,工作流Name,event,conclusion,headBranch,创建dAt,更新dAt,启动edAt,url,仓库 \ > artifacts/github-actions/运行-<运行-id>.json
运行
Text 报告:
运行_GLOB='artifacts/github-actions/.json' \ INCIDENT_GAP_MINUTES=45 \ bash 技能s/github-actions-incident-timeline-审计/scripts/incident-timeline-审计.sh
JSON 输出 with fAIl gate:
运行_GLOB='artifacts/github-actions/.json' \ 输出_格式化=json \ FAIL_ON_CRITICAL=1 \ bash 技能s/github-actions-incident-timeline-审计/scripts/incident-timeline-审计.sh
运行 with bundled fixtures:
运行_GLOB='技能s/github-actions-incident-timeline-审计/fixtures/.json' \ bash 技能s/github-actions-incident-timeline-审计/scripts/incident-timeline-审计.sh
输出 contract Exit 0 in 报告 mode (default) Exit 1 when FAIL_ON_CRITICAL=1 and one or more incidents are critical Text mode prints summary + ranked incident windows JSON mode prints summary + incidents + critical incident detAIls