← 返回
安全合规 中文

GitHub Actions Retry Recovery Audit

Audit GitHub Actions runs for fail-then-success retry recovery patterns to quantify flaky rerun waste.
审计 GitHub Actions 运行,检测失败后成功的重试恢复模式,量化 flaky 重运行的浪费。
daniellummis
安全合规 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 499
下载
💾 53
安装
1
版本
#latest

概述

GitHub Actions Retry Recovery Audit

Use this skill to find workflow/job slices that repeatedly fail before eventually succeeding, so teams can target flaky reruns with the biggest minute waste.

What this skill does

  • Reads one or more GitHub Actions workflow run JSON exports
  • Groups attempts by repository/workflow/branch/commit (headSha)
  • Detects recovery sequences where one or more failure-like attempts are followed by success
  • Calculates wasted minutes consumed before first success in each sequence
  • Emits text or JSON output for triage dashboards and CI fail gates

Inputs

Optional:

  • RUN_GLOB (default: artifacts/github-actions/*.json)
  • TOP_N (default: 20)
  • OUTPUT_FORMAT (text or json, default: text)
  • WARN_WASTE_MINUTES (default: 20)
  • CRITICAL_WASTE_MINUTES (default: 60)
  • FAIL_ON_CRITICAL (0 or 1, default: 0)
  • WORKFLOW_MATCH, WORKFLOW_EXCLUDE (regex, optional)
  • BRANCH_MATCH, BRANCH_EXCLUDE (regex, optional)
  • REPO_MATCH, REPO_EXCLUDE (regex, optional)

Collect run JSON

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

Run

Text report:

RUN_GLOB='artifacts/github-actions/*.json' \
WARN_WASTE_MINUTES=20 \
CRITICAL_WASTE_MINUTES=60 \
bash skills/github-actions-retry-recovery-audit/scripts/retry-recovery-audit.sh

JSON output + fail gate:

RUN_GLOB='artifacts/github-actions/*.json' \
OUTPUT_FORMAT=json \
FAIL_ON_CRITICAL=1 \
bash skills/github-actions-retry-recovery-audit/scripts/retry-recovery-audit.sh

Output contract

  • Exit 0 in report mode
  • Exit 1 when FAIL_ON_CRITICAL=1 and critical recoveries are present
  • Text output includes summary plus top recovery groups ranked by wasted minutes
  • JSON output includes summary, ranked recoveries, and critical_recoveries

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 18:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,415
developer-tools

GitHub Actions Failure Matrix

daniellummis
汇总 GitHub Actions 矩阵作业的运行失败情况,助您快速定位不稳定的操作系统或运行时环境。
★ 0 📥 623
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,602