返回顶部
g

github-actions-recovery-latency-auditGitHub Actions恢复延迟审计

Measure GitHub Actions failure recovery latency and unresolved incident age by workflow group.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
236
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

github-actions-recovery-latency-audit

GitHub Actions 恢复延迟审计

使用此技能来测量工作流在失败后的恢复速度,并检测长时间保持红色状态的组。

此技能的功能

  • - 读取 GitHub Actions 运行 JSON 导出文件
  • 按仓库 + 工作流 + 分支 + 事件进行分组
  • 构建故障事件(从首次失败运行到下一次成功运行)
  • 报告已关闭事件的恢复延迟
  • 报告未解决事件数量及最旧未解决事件的时长
  • 对严重程度进行评分(ok、warn、critical),用于分类和 CI 门控

输入参数

可选参数:
  • - RUNGLOB(默认值:artifacts/github-actions/*.json)
  • TOPN(默认值:20)
  • OUTPUTFORMAT(text 或 json,默认值:text)
  • MINRUNS(默认值:4)
  • WARNP95HOURS(默认值:6)
  • CRITICALP95HOURS(默认值:18)
  • WARNOPENHOURS(默认值:12)
  • CRITICALOPENHOURS(默认值:36)
  • WARNOPENINCIDENTS(默认值:1)
  • CRITICALOPENINCIDENTS(默认值:2)
  • NOWISO(可选,用于确定性测试的固定时钟)
  • WORKFLOWMATCH / WORKFLOWEXCLUDE(正则表达式)
  • BRANCHMATCH / BRANCHEXCLUDE(正则表达式)
  • EVENTMATCH / EVENTEXCLUDE(正则表达式)
  • REPOMATCH / REPOEXCLUDE(正则表达式)
  • FAILON_CRITICAL(0 或 1,默认值:0)

收集运行 JSON

bash
gh run view --json databaseId,workflowName,event,conclusion,headBranch,createdAt,url,repository \
> artifacts/github-actions/run-.json

运行

文本报告:

bash
RUN_GLOB=artifacts/github-actions/*.json \
TOP_N=15 \
bash skills/github-actions-recovery-latency-audit/scripts/recovery-latency-audit.sh

JSON + 失败门控:

bash
RUN_GLOB=artifacts/github-actions/*.json \
OUTPUT_FORMAT=json \
FAILONCRITICAL=1 \
bash skills/github-actions-recovery-latency-audit/scripts/recovery-latency-audit.sh

使用捆绑的测试数据运行:

bash
RUN_GLOB=skills/github-actions-recovery-latency-audit/fixtures/*.json \
NOW_ISO=2026-03-07T14:00:00Z \
bash skills/github-actions-recovery-latency-audit/scripts/recovery-latency-audit.sh

输出约定

  • - 报告模式下退出代码为 0(默认)
  • 当 FAILONCRITICAL=1 且一个或多个组处于严重状态时,退出代码为 1
  • 文本模式打印摘要 + 按恢复风险排序的组
  • JSON 模式打印摘要 + 排序后的组 + 严重组

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-actions-recovery-latency-audit-1776194795 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-actions-recovery-latency-audit-1776194795 技能

通过命令行安装

skillhub install github-actions-recovery-latency-audit-1776194795

下载

⬇ 下载 github-actions-recovery-latency-audit v1.0.0(免费)

文件大小: 12.21 KB | 发布时间: 2026-4-15 13:30

v1.0.0 最新 2026-4-15 13:30
Initial release of github-actions-recovery-latency-audit.

- Measures recovery latency for failed GitHub Actions workflows by group.
- Reports unresolved incidents and their ages.
- Supports filtering by workflow, branch, event, and repository.
- Provides summary and detailed ranking in text or JSON format.
- Optional severity-based CI fail gate with configurable thresholds.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部