GitHub Actions Commit Health Audit — GitHub Actions Commit 健康 审计
v1.0.0审计 GitHub Actions reliability by commit SHA to surface risky commits causing repeated 工作流 失败s across branches.
运行时依赖
安装命令
点击复制技能文档
GitHub Actions Commit 健康 审计
Use this 技能 to find commits that repeatedly fAIl CI so teams can prioritize 回滚, revert, or tar获取ed fixes.
What this 技能 does Reads GitHub Actions 运行 JSON 导出s Groups 运行s by 仓库 + commit SHA Scores commit risk using 失败 rate, fAIled-运行 volume, and 工作流 spread Flags 警告/critical commit hotspots Emits text or JSON 输出 for CI 检查s and triage 仪表盘s 输入s
Optional:
运行_GLOB (default: artifacts/github-actions/.json) TOP_N (default: 20) 输出_格式化 (text or json, default: text) MIN_运行S (default: 2) BRANCH_MATCH (regex, optional) BRANCH_EXCLUDE (regex, optional) 工作流_MATCH (regex, optional) 工作流_EXCLUDE (regex, optional) REPO_MATCH (regex, optional) REPO_EXCLUDE (regex, optional) SHA_MATCH (regex, optional) SHA_EXCLUDE (regex, optional) FAIL_WARN_PERCENT (default: 25) FAIL_CRITICAL_PERCENT (default: 50) WARN_SCORE (default: 35) CRITICAL_SCORE (default: 60) FAIL_ON_CRITICAL (0 or 1, default: 0) Collect 运行 JSON gh 运行 view <运行-id> --json databaseId,工作流Name,event,conclusion,headBranch,headSha,创建dAt,更新dAt,启动edAt,url,仓库 \ > artifacts/github-actions/运行-<运行-id>.json
运行
Text 报告:
运行_GLOB='artifacts/github-actions/.json' \ MIN_运行S=3 \ bash 技能s/github-actions-commit-健康-审计/scripts/commit-健康-审计.sh
JSON 输出 with fAIl gate:
运行_GLOB='artifacts/github-actions/.json' \ 输出_格式化=json \ FAIL_ON_CRITICAL=1 \ bash 技能s/github-actions-commit-健康-审计/scripts/commit-健康-审计.sh
运行 with bundled fixtures:
运行_GLOB='技能s/github-actions-commit-健康-审计/fixtures/.json' \ bash 技能s/github-actions-commit-健康-审计/scripts/commit-健康-审计.sh
输出 contract Exit 0 in 报告 mode (default) Exit 1 when FAIL_ON_CRITICAL=1 and one or more commits are critical Text mode prints summary + ranked commit-risk groups JSON mode prints summary + scored groups + critical commit detAIls