Repository navigation
fix(release): preflight plugin npm trusted publishers - #124095
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 15, 2026 07:46
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 16, 2026
* fix(release): preflight npm trusted publishers * fix(release): fully escape npm package path
This was referenced Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where plugin release operators could select the existing-package OIDC route even when npm had no matching trusted-publisher configuration, causing the publish job to fail late with
ENEEDAUTH. This happened for@openclaw/fish-audio-speechduring the v2026.8.1-beta.2 release: https://github.com/openclaw/openclaw/actions/runs/31863860804/job/94962239580Why This Change Was Made
The npm package has been configured for repository
openclaw/openclaw, workflowplugin-npm-release.yml, environmentnpm-release, and publish permission. This PR adds a separate protected preflight subtype that requests the GitHub OIDC token, performs npm's package-specific token exchange, and immediately discards the returned npm token. It does not invokenpm publish, change dist-tags, or mutate a package version; the existing artifact-only preflight remains secretless and unchanged.The live check is routed directly from validated package selection and runs once in the
npm-releaseenvironment, rather than rebuilding or packing every selected plugin.User Impact
Release operators can verify trusted-publisher configuration before the next plugin version is published. Missing or mismatched npm trust settings now fail in a safe, non-publishing workflow instead of during the release publish step.
Evidence
openclaw/openclaw, workflowplugin-npm-release.yml, environmentnpm-release, permissioncreatePackage.node scripts/run-vitest.mjs test/scripts/npm-trusted-publisher-preflight.test.ts test/scripts/plugin-npm-extended-stable-workflow.test.ts— 16 tests passed.actionlint .github/workflows/plugin-npm-release.yml— passed.node --check scripts/npm-trusted-publisher-preflight.mjs— passed.node scripts/check-changed.mjs -- <touched files>— passed on Blacksmith Testbox: https://github.com/openclaw/openclaw/actions/runs/31872630706git diff --check— passed.AI-assisted; reviewed and understood by the maintainer.