360 Secure SkillHub
360 安全技能中心

Skill Github Daily Ops

该 Skill 用 Node 脚本执行 GitHub 每日运维:统计每个仓库的开放 PR、开放 issue、最近提交日期和 Dependabot PR 数量并输出 Markdown 健康报告;对严重级别为低或中且 CI 通过的 Dependabot PR 自动合并,高危或关键 PR 以及 CI 未通过或进行中的 PR 跳过,交由人工审核。

分类:自动化
zero2ai-hub
zero2ai-hub
热度 42.27
最近更新 2026-05-18 12:12:42

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add zero2ai-hub/skill-github-daily-ops
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
skill-github-daily-ops
version
1.0.0
description
Daily GitHub repo health check + safe Dependabot auto-merge. Outputs markdown report.
metadata
{"openclaw":{"requires":{"bins":["node"]}}}

skill-github-daily-ops

Daily GitHub ops: health report per repo + safe auto-merge of Dependabot PRs (medium/low CVEs only).

Usage

# Health report for all org repos
node scripts/daily-ops.js --org Zero2Ai-hub --report

# Auto-merge safe Dependabot PRs
node scripts/daily-ops.js --org Zero2Ai-hub --merge-dependabot

# Both — specific repos
node scripts/daily-ops.js --org Zero2Ai-hub --repos "repo1,repo2" --report --merge-dependabot

Arguments

Arg Default Description
--org $GITHUB_ORG env GitHub organization
--repos all Comma-separated repo names
--report false Output markdown health report
--merge-dependabot false Auto-merge safe Dependabot PRs

Environment Variables

Var Description
GITHUB_TOKEN GitHub PAT (or reads from ~/.github_token)
GITHUB_ORG Default org

Auto-Merge Rules

  • ✅ Merges: Dependabot PRs where severity is LOW or MEDIUM and CI passes
  • ⛔ Skips: HIGH or CRITICAL CVE PRs (require human review)
  • ⏳ Skips: PRs with failing or in-progress CI

Report Output

Markdown table per repo with: open PRs, open issues, last commit date, Dependabot PR count.

Cron Example

# Daily at 08:00 Dubai time (04:00 UTC)
0 4 * * * cd /path/to/workspace && node skills/skill-github-daily-ops/scripts/daily-ops.js --org Zero2Ai-hub --report --merge-dependabot >> /var/log/github-daily-ops.log 2>&1