Community编程与开发github.com

OpenClaw GHSA 维护器

检查、修补、验证、发布或确认 OpenClaw GHSA 安全公告及私有分支状态。

OpenClaw GHSA 维护器 是什么?

此技能专用于 OpenClaw 仓库的安全公告(GHSA)工作流,与常规发布工作流严格分离。它提供了一套完整的操作步骤:从获取公告状态与 npm 版本信息,到验证私有分支无未合并的 PR,再到安全地使用 Markdown 和 JSON 构建修补负载。该技能强调了 API 调用的正确顺序(例如严重性与 CVSS 向量字符串不可在同一 PATCH 中修改)以及发布后的验证检查。支持 GitHub CLI (`gh`) 和 `jq` 等工具,适用于需要高效、准确管理安全公告的开发者和维护者。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/openclaw-ghsa-maintainer

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

OpenClaw GHSA 维护器 是做什么的?

此技能仅用于仓库安全公告工作流。常规发布工作请使用 release-openclaw-maintainer。

遵守公告防护措施

  • 在审查或发布仓库公告之前,请阅读 SECURITY.md。
  • 在执行任何发布操作前征求许可。
  • 将此技能视为仅用于 GHSA。不得将其用于稳定版或测试版发布工作。

获取并检查公告状态

获取当前公告及最新的已发布 npm 版本:

gh api /repos/openclaw/openclaw/security-advisories/<GHSA>
npm view openclaw version --userconfig "$(mktemp)"

在修补前,使用获取的输出确认公告状态、关联的私有分支以及漏洞负载结构。

验证私有分支的 PR 已关闭

在发布之前,验证公告的私有分支没有开放的 PR:

fork=$(gh api /repos/openclaw/openclaw/security-advisories/<GHSA> | jq -r .private_fork.full_name)
gh pr list -R "$fork" --state open

发布前 PR 列表必须为空。

安全地准备公告 Markdown 和 JSON

  • 通过 heredoc 将公告 Markdown 写入临时文件。请勿使用转义的 \n 字符串。
  • 使用 jq 构建 PATCH 负载的 JSON,而不是手动转义的 shell JSON。

示例模式:

cat > /tmp/ghsa.desc.md <<'EOF'
<markdown 描述>
EOF

jq -n --rawfile desc /tmp/ghsa.desc.md \
  '{summary,severity,description:$desc,vulnerabilities:[...]}' \
  > /tmp/ghsa.patch.json

按正确顺序应用 PATCH 调用

  • 请勿在同一个 PATCH 调用中设置 severity 和 cvss_vector_string。
  • 当公告同时需要这两个字段时,请使用单独的调用。
  • 通过 PATCH 公告并设置 "state":"published" 来发布。没有独立的 /publish 端点。

示例形式:

gh api -X PATCH /repos/openclaw/openclaw/security-advisories/<GHSA> \
  --input /tmp/ghsa.patch.json

发布并验证成功

发布后,重新获取公告并确认:

  • state=published
  • published_at 已设置
  • 描述中不包含字面上的转义 \\n

验证模式:

gh api /repos/openclaw/openclaw/security-advisories/<GHSA>
jq -r .description < /tmp/ghsa.refetch.json | rg '\\n'

常见的 GHSA 陷阱

  • 如果必填字段缺失或私有分支仍有开放的 PR,发布将失败并返回 HTTP 422。
  • 看起来在 shell 中正确的负载,如果 Markdown 是通过转义换行符字符串组合的,则可能仍然错误。
  • 公告 PATCH 顺序很重要;当 GHSA API 约束要求时,请分别更新字段。
  • 公开的加固/不发表评论和草稿文本应避免包含原始提交哈希、PR 标题/编号和修复机制摘要。优先使用已修补的版本字段或仅限发布的措辞;将 SHA、PR 和实现说明保留在内部证据中。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

相关技能