闲社服务运行正常AI智能体自动化平台
g

手动触发审计

技能标识:github-actions-manual-trigger-audit

Audit manual GitHub Actions trigger dependence by workflow/event to flag automation gaps and intervention risk.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

手动触发审计

GitHub Actions 手动触发审计

使用此技能检测过度依赖手动触发(workflowdispatch / repositorydispatch)而非自动化CI事件的工作流。

该技能的功能

  • - 读取GitHub Actions运行JSON导出文件
  • 按仓库 + 工作流(+ 分支)对运行进行分组
  • 衡量手动触发占比与总运行量
  • 追踪近期手动触发连续次数(最近N次运行)
  • 为操作风险门控评分严重程度(ok、warn、critical)
  • 输出文本或JSON格式结果供自动化使用

输入参数

可选参数:
  • - RUNGLOB(默认值:artifacts/github-actions/*.json)
  • TOPN(默认值:20)
  • OUTPUTFORMAT(text 或 json,默认值:text)
  • GROUPBY(workflow 或 workflow-branch,默认值:workflow)
  • MANUALEVENTS(逗号分隔,默认值:workflowdispatch,repositorydispatch)
  • RECENTWINDOW(检查连续次数的最近运行数,默认值:5)
  • MINRUNS(所需最小运行次数,默认值:5)
  • WARNMANUALRATIO(0..1,默认值:0.35)
  • CRITICALMANUALRATIO(0..1,默认值:0.65)
  • WARNMANUALRUNS(默认值:5)
  • CRITICALMANUALRUNS(默认值:12)
  • WARNRECENTMANUALSTREAK(默认值:3)
  • CRITICALRECENTMANUALSTREAK(默认值:5)
  • WORKFLOWMATCH / WORKFLOWEXCLUDE(正则表达式,可选)
  • BRANCHMATCH / BRANCHEXCLUDE(正则表达式,可选)
  • EVENTMATCH / EVENTEXCLUDE(正则表达式,可选)
  • REPOMATCH / REPOEXCLUDE(正则表达式,可选)
  • FAILON_CRITICAL(0 或 1,默认值:0)

收集运行JSON

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

运行

文本报告:

bash
RUN_GLOB=artifacts/github-actions/*.json \
bash skills/github-actions-manual-trigger-audit/scripts/manual-trigger-audit.sh

JSON输出 + 失败门控:

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

针对捆绑测试数据运行:

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

输出约定

  • - 报告模式下退出码为 0(默认)
  • 当 FAILONCRITICAL=1 且一个或多个分组为严重级别时,退出码为 1
  • 文本模式打印摘要 + 排名工作流分组
  • JSON模式打印摘要 + 排名分组 + 严重分组

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-actions-manual-trigger-audit-1776195027 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-actions-manual-trigger-audit-1776195027 技能

通过命令行安装

skillhub install github-actions-manual-trigger-audit-1776195027

下载

⬇ 下载 github-actions-manual-trigger-audit v1.0.0(免费)

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

v1.0.0 最新 2026-4-15 13:26
Initial release — audit and report on manual vs automatic GitHub Actions workflow triggers.

- Analyzes GitHub Actions run JSON to measure reliance on manual workflow triggers
- Calculates manual trigger share, tracks recent manual streaks, and rates operational risk (ok/warn/critical)
- Highly configurable input, output, and scoring parameters
- Outputs both human-readable and JSON reports
- Supports fail-on-critical gating for automation integration
返回顶部