惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
IT之家
IT之家
Last Week in AI
Last Week in AI
J
Java Code Geeks
L
LangChain Blog
Recent Announcements
Recent Announcements
Martin Fowler
Martin Fowler
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
博客园 - Franky
博客园 - 司徒正美
月光博客
月光博客
博客园 - 叶小钗
Vercel News
Vercel News
腾讯CDC
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
B
Blog RSS Feed
人人都是产品经理
人人都是产品经理
H
Help Net Security
G
Google Developers Blog
D
DataBreaches.Net

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
ci(release): allow direct publish recovery · openclaw/ope...
steipete · 2026-05-31 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -429,12 +429,13 @@ jobs:

429429

echo "Direct OpenClaw npm publish; relying on this workflow's npm-release environment approval."

430430

exit 0

431431

fi

432+

direct_recovery=false

432433

if [[ "${GITHUB_ACTOR}" != "github-actions[bot]" ]]; then

433-

echo "OpenClaw npm publish must be dispatched by the OpenClaw Release Publish workflow, not directly by ${GITHUB_ACTOR}." >&2

434-

exit 1

434+

direct_recovery=true

435+

echo "Direct OpenClaw npm recovery with release_publish_run_id; relying on this workflow's npm-release environment approval."

435436

fi

436437

RUN_JSON="$(gh run view "$RELEASE_PUBLISH_RUN_ID" --repo "$GITHUB_REPOSITORY" --json workflowName,headBranch,event,status,conclusion,url)"

437-

printf '%s' "$RUN_JSON" | node -e 'const fs = require("node:fs"); const run = JSON.parse(fs.readFileSync(0, "utf8")); const checks = [["workflowName", "OpenClaw Release Publish"], ["headBranch", process.env.EXPECTED_WORKFLOW_BRANCH], ["event", "workflow_dispatch"]]; for (const [key, expected] of checks) { if (run[key] !== expected) { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} must have ${key}=${expected}, got ${run[key] ?? "<missing>"}.`); process.exit(1); } } if (run.status !== "in_progress") { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} must still be in_progress, got ${run.status ?? "<missing>"}.`); process.exit(1); } if (run.conclusion) { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} already concluded ${run.conclusion}.`); process.exit(1); } console.log(`Using release publish approval run ${process.env.RELEASE_PUBLISH_RUN_ID}: ${run.url}`);'

438+

printf '%s' "$RUN_JSON" | DIRECT_RELEASE_RECOVERY="${direct_recovery}" node scripts/validate-release-publish-approval.mjs

438439
439440

publish_openclaw_npm:

440441

# KEEP THE REAL RELEASE/PUBLISH PATH ON A GITHUB-HOSTED RUNNER.

Original file line numberDiff line numberDiff line change

@@ -222,12 +222,13 @@ jobs:

222222

echo "Direct Plugin ClawHub Release dispatch; relying on this workflow's clawhub-plugin-release environment approval."

223223

exit 0

224224

fi

225+

direct_recovery=false

225226

if [[ "${GITHUB_ACTOR}" != "github-actions[bot]" ]]; then

226-

echo "Plugin ClawHub publish must be dispatched by the OpenClaw Release Publish workflow, not directly by ${GITHUB_ACTOR}." >&2

227-

exit 1

227+

direct_recovery=true

228+

echo "Direct Plugin ClawHub Release recovery with release_publish_run_id; relying on this workflow's clawhub-plugin-release environment approval."

228229

fi

229230

RUN_JSON="$(gh run view "$RELEASE_PUBLISH_RUN_ID" --repo "$GITHUB_REPOSITORY" --json workflowName,headBranch,event,status,conclusion,url)"

230-

printf '%s' "$RUN_JSON" | node -e 'const fs = require("node:fs"); const run = JSON.parse(fs.readFileSync(0, "utf8")); const checks = [["workflowName", "OpenClaw Release Publish"], ["headBranch", process.env.EXPECTED_WORKFLOW_BRANCH], ["event", "workflow_dispatch"]]; for (const [key, expected] of checks) { if (run[key] !== expected) { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} must have ${key}=${expected}, got ${run[key] ?? "<missing>"}.`); process.exit(1); } } if (run.status !== "in_progress") { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} must still be in_progress, got ${run.status ?? "<missing>"}.`); process.exit(1); } if (run.conclusion) { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} already concluded ${run.conclusion}.`); process.exit(1); } console.log(`Using release publish approval run ${process.env.RELEASE_PUBLISH_RUN_ID}: ${run.url}`);'

231+

printf '%s' "$RUN_JSON" | DIRECT_RELEASE_RECOVERY="${direct_recovery}" node scripts/validate-release-publish-approval.mjs

231232
232233

preview_plugin_pack:

233234

needs: preview_plugins_clawhub

Original file line numberDiff line numberDiff line change

@@ -199,12 +199,13 @@ jobs:

199199

echo "Direct Plugin NPM Release dispatch; relying on this workflow's npm-release environment approval."

200200

exit 0

201201

fi

202+

direct_recovery=false

202203

if [[ "${GITHUB_ACTOR}" != "github-actions[bot]" ]]; then

203-

echo "Plugin npm publish must be dispatched by the OpenClaw Release Publish workflow, not directly by ${GITHUB_ACTOR}." >&2

204-

exit 1

204+

direct_recovery=true

205+

echo "Direct Plugin NPM Release recovery with release_publish_run_id; relying on this workflow's npm-release environment approval."

205206

fi

206207

RUN_JSON="$(gh run view "$RELEASE_PUBLISH_RUN_ID" --repo "$GITHUB_REPOSITORY" --json workflowName,headBranch,event,status,conclusion,url)"

207-

printf '%s' "$RUN_JSON" | node -e 'const fs = require("node:fs"); const run = JSON.parse(fs.readFileSync(0, "utf8")); const checks = [["workflowName", "OpenClaw Release Publish"], ["headBranch", process.env.EXPECTED_WORKFLOW_BRANCH], ["event", "workflow_dispatch"]]; for (const [key, expected] of checks) { if (run[key] !== expected) { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} must have ${key}=${expected}, got ${run[key] ?? "<missing>"}.`); process.exit(1); } } if (run.status !== "in_progress") { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} must still be in_progress, got ${run.status ?? "<missing>"}.`); process.exit(1); } if (run.conclusion) { console.error(`Referenced release publish run ${process.env.RELEASE_PUBLISH_RUN_ID} already concluded ${run.conclusion}.`); process.exit(1); } console.log(`Using release publish approval run ${process.env.RELEASE_PUBLISH_RUN_ID}: ${run.url}`);'

208+

printf '%s' "$RUN_JSON" | DIRECT_RELEASE_RECOVERY="${direct_recovery}" node scripts/validate-release-publish-approval.mjs

208209
209210

preview_plugin_pack:

210211

needs: preview_plugins_npm

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,57 @@

1+

#!/usr/bin/env node

2+

import fs from "node:fs";

3+
4+

const run = JSON.parse(fs.readFileSync(0, "utf8"));

5+
6+

const releasePublishRunId = process.env.RELEASE_PUBLISH_RUN_ID ?? "";

7+

const expectedBranch = process.env.EXPECTED_WORKFLOW_BRANCH ?? "";

8+

const directRecovery = process.env.DIRECT_RELEASE_RECOVERY === "true";

9+
10+

const checks = [

11+

["workflowName", "OpenClaw Release Publish"],

12+

["headBranch", expectedBranch],

13+

["event", "workflow_dispatch"],

14+

];

15+
16+

for (const [key, expected] of checks) {

17+

if (run[key] !== expected) {

18+

console.error(

19+

`Referenced release publish run ${releasePublishRunId} must have ${key}=${expected}, got ${run[key] ?? "<missing>"}.`,

20+

);

21+

process.exit(1);

22+

}

23+

}

24+
25+

if (!directRecovery) {

26+

if (run.status !== "in_progress") {

27+

console.error(

28+

`Referenced release publish run ${releasePublishRunId} must still be in_progress, got ${run.status ?? "<missing>"}.`,

29+

);

30+

process.exit(1);

31+

}

32+

if (run.conclusion) {

33+

console.error(

34+

`Referenced release publish run ${releasePublishRunId} already concluded ${run.conclusion}.`,

35+

);

36+

process.exit(1);

37+

}

38+

console.log(`Using release publish approval run ${releasePublishRunId}: ${run.url}`);

39+

process.exit(0);

40+

}

41+
42+

if (run.status === "in_progress" && !run.conclusion) {

43+

console.log(`Using active release publish run ${releasePublishRunId}: ${run.url}`);

44+

process.exit(0);

45+

}

46+
47+

if (run.status === "completed" && ["success", "failure"].includes(run.conclusion)) {

48+

console.log(

49+

`Using completed release publish run ${releasePublishRunId} (${run.conclusion}) for direct recovery: ${run.url}`,

50+

);

51+

process.exit(0);

52+

}

53+
54+

console.error(

55+

`Direct release recovery run ${releasePublishRunId} must be in_progress or completed with success/failure, got status=${run.status ?? "<missing>"} conclusion=${run.conclusion ?? "<missing>"}.`,

56+

);

57+

process.exit(1);

Original file line numberDiff line numberDiff line change

@@ -1365,6 +1365,7 @@ describe("package artifact reuse", () => {

13651365

const clawHubWorkflow = readFileSync(".github/workflows/plugin-clawhub-release.yml", "utf8");

13661366

const pluginNpmWorkflow = readFileSync(".github/workflows/plugin-npm-release.yml", "utf8");

13671367

const openclawNpmWorkflow = readFileSync(".github/workflows/openclaw-npm-release.yml", "utf8");

1368+

const approvalScript = readFileSync("scripts/validate-release-publish-approval.mjs", "utf8");

13681369
13691370

expect(packageJson.scripts?.["release:verify-beta"]).toBe(

13701371

"node --import tsx scripts/release-verify-beta.ts",

@@ -1422,9 +1423,14 @@ describe("package artifact reuse", () => {

14221423

expect(pluginNpmWorkflow).toContain('GITHUB_ACTOR}" != "github-actions[bot]"');

14231424

expect(clawHubWorkflow).toContain('GITHUB_ACTOR}" != "github-actions[bot]"');

14241425

expect(openclawNpmWorkflow).toContain('GITHUB_ACTOR}" != "github-actions[bot]"');

1425-

expect(pluginNpmWorkflow).toContain("must still be in_progress");

1426-

expect(clawHubWorkflow).toContain("must still be in_progress");

1427-

expect(openclawNpmWorkflow).toContain("must still be in_progress");

1426+

expect(pluginNpmWorkflow).toContain("Direct Plugin NPM Release recovery");

1427+

expect(clawHubWorkflow).toContain("Direct Plugin ClawHub Release recovery");

1428+

expect(openclawNpmWorkflow).toContain("Direct OpenClaw npm recovery");

1429+

expect(pluginNpmWorkflow).toContain("validate-release-publish-approval.mjs");

1430+

expect(clawHubWorkflow).toContain("validate-release-publish-approval.mjs");

1431+

expect(openclawNpmWorkflow).toContain("validate-release-publish-approval.mjs");

1432+

expect(approvalScript).toContain("must still be in_progress");

1433+

expect(approvalScript).toContain("completed with success/failure");

14281434

expect(pluginNpmWorkflow).toContain("environment: npm-release");

14291435

expect(clawHubWorkflow).toContain("environment: clawhub-plugin-release");

14301436

expect(openclawNpmWorkflow).toContain("environment: npm-release");