返回顶部
g

github-actions-incident-timeline-auditGitHub操作事件时间线审计

Cluster failed GitHub Actions runs into incident windows by repo to expose outage duration, impact scope, and escalation severity.

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

github-actions-incident-timeline-audit

GitHub Actions 事件时间线审计

使用此技能将杂乱的失败运行导出转换为事件窗口,以便在CI可靠性审查期间快速分类。

此技能的功能

  • - 读取GitHub Actions运行JSON导出文件
  • 仅保留失败/取消/超时类型的结果
  • 使用可配置的间隔阈值,将按仓库分组的失败归入事件窗口
  • 使用失败运行和持续时间阈值对每个事件进行评分
  • 输出文本或JSON格式,用于审查文档、运维仪表板和CI失败门控

输入参数

可选:
  • - RUNGLOB(默认值:artifacts/github-actions/*.json)
  • TOPN(默认值:20)
  • OUTPUTFORMAT(text或json,默认值:text)
  • INCIDENTGAPMINUTES(默认值:45)
  • WARNFAILEDRUNS(默认值:2)
  • CRITICALFAILEDRUNS(默认值:4)
  • WARNDURATIONMINUTES(默认值:20)
  • CRITICALDURATIONMINUTES(默认值:60)
  • WORKFLOWMATCH(正则表达式,可选)
  • WORKFLOWEXCLUDE(正则表达式,可选)
  • REPOMATCH(正则表达式,可选)
  • REPOEXCLUDE(正则表达式,可选)
  • FAILON_CRITICAL(0或1,默认值:0)

收集运行JSON

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

运行

文本报告:

bash
RUN_GLOB=artifacts/github-actions/*.json \
INCIDENTGAPMINUTES=45 \
bash skills/github-actions-incident-timeline-audit/scripts/incident-timeline-audit.sh

带失败门控的JSON输出:

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

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

bash
RUN_GLOB=skills/github-actions-incident-timeline-audit/fixtures/*.json \
bash skills/github-actions-incident-timeline-audit/scripts/incident-timeline-audit.sh

输出约定

  • - 报告模式下退出码为0(默认)
  • 当FAILONCRITICAL=1且存在一个或多个严重事件时,退出码为1
  • 文本模式打印摘要 + 排名事件窗口
  • JSON模式打印摘要 + 事件 + 严重事件详情

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-actions-incident-timeline-audit-1776198111 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-actions-incident-timeline-audit-1776198111 技能

通过命令行安装

skillhub install github-actions-incident-timeline-audit-1776198111

下载

⬇ 下载 github-actions-incident-timeline-audit v1.0.0(免费)

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

v1.0.0 最新 2026-4-15 13:43
Initial release – cluster failed GitHub Actions runs into incident windows for reliable CI reviews.

- Reads failed/cancelled/timed-out GitHub Actions run exports in JSON.
- Groups failures by repository and incident windows using a time gap threshold.
- Scores incidents based on failed run and duration thresholds; supports warning and critical levels.
- Flexible output: human-friendly text or detailed JSON for dashboards and ops automation.
- Provides filters for workflow, repository, and fail gate options.

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

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

p2p_official_large
返回顶部