Repository navigation
A manual Release run proves npm trust and never publishes - #21
Merged
Merged
Conversation
workflow_dispatch ran every job on a v tag ref, so a manual run started on a tag published again. Every publishing job now runs only on a tag push; a manual run runs only npm-trust-proof, which exchanges the job's OIDC token with npm and reports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
A manual run of the Release workflow now proves, before any tag, that npm trusts this workflow for the package draftcat. It publishes nothing.
workflow_dispatchonrelease.ymlruns only the new jobnpm-trust-proof(permissions:contents: read,id-token: write). It exchanges the job's OIDC token with npm per package (POST /-/npm/v1/oidc/token/exchange/package/<name>, the callnpm publishmakes first) and lists, per package, whether npm trusts the workflow, whether the version is still free, whetherrepository.urlnames this repository, and why npm refused. The result is thenpm-trust-proofartifact and the step summary.This is a plain merge: no version change, no tag.
Evidence
The proof script's tests pass (trusted, 404 with its reason, foreign repository.url, missing id-token permission, network failure, scoped names, no secret in the output, runs from a path with a space or through a symlink). The workflow's jobs and their conditions were read back from the YAML. The workflow parses as YAML; the action pins resolve to v7.0.1 and v7.0.2 tags.
Door
Two-way: revert this commit; no run happens until someone presses Run workflow.
Blast radius
.github/workflows/release.ymland a new.github/scripts/npm-trust-proof.mjs. A manual run touches no package or tag on npm or GitHub.