返回顶部
g

github-actions-failure-streak-auditGitHub Actions失败链审计

Detect consecutive GitHub Actions failure streaks by repo/workflow/branch to prioritize unstable pipelines.

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

github-actions-failure-streak-audit

GitHub Actions 连续失败审计

使用此技能在重复性CI失败成为交付瓶颈之前发现它们。

该技能的功能

  • - 读取GitHub Actions运行JSON导出文件(gh run view --json ...)
  • 按仓库+工作流+分支对运行进行分组
  • 检测连续失败序列(failure、cancelled、timed_out)
  • 根据连续失败长度和影响的运行分钟数评估严重程度
  • 优先显示最长的未解决连续失败序列

输入参数

可选参数:
  • - RUNGLOB(默认值:artifacts/github-actions/*.json)
  • TOPN(默认值:20)
  • OUTPUTFORMAT(text或json,默认值:text)
  • WARNSTREAK(默认值:2)
  • CRITICALSTREAK(默认值:4)
  • FAILONCRITICAL(0或1,默认值:0)
  • WORKFLOWMATCH、WORKFLOWEXCLUDE(正则表达式,可选)
  • REPOMATCH、REPOEXCLUDE(正则表达式,可选)
  • BRANCHMATCH、BRANCH_EXCLUDE(正则表达式,可选)

收集运行JSON

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

运行

文本报告:

bash
RUN_GLOB=artifacts/github-actions/*.json \
WARN_STREAK=2 \
CRITICAL_STREAK=4 \
bash skills/github-actions-failure-streak-audit/scripts/failure-streak-audit.sh

JSON输出+失败门控:

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

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

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

输出约定

  • - 报告模式下退出码为0
  • 当FAILONCRITICAL=1且存在严重连续失败时退出码为1
  • 文本输出包含分组的连续失败总数和排名热点
  • JSON输出包含summary、streaks和critical_streaks

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-actions-failure-streak-audit-1776199990 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-actions-failure-streak-audit-1776199990 技能

通过命令行安装

skillhub install github-actions-failure-streak-audit-1776199990

下载

⬇ 下载 github-actions-failure-streak-audit v1.0.0(免费)

文件大小: 5.21 KB | 发布时间: 2026-4-15 11:12

v1.0.0 最新 2026-4-15 11:12
Initial release: Detect, score, and report consecutive GitHub Actions failure streaks for CI pipeline reliability.

- Identifies and groups failure streaks by repo, workflow, and branch.
- Surfaces unresolved failure streaks, prioritizing by length and runtime impact.
- Supports both text and JSON report formats, with customizable filters.
- Optional fail gate: exit nonzero if critical streak thresholds are reached.
- Compatible with raw GitHub Actions run exports.

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

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

p2p_official_large
返回顶部