SAN: publish @linqapp/cli to npm via OIDC trusted publishing#34
Closed
abhiramkast wants to merge 1 commit into
Closed
SAN: publish @linqapp/cli to npm via OIDC trusted publishing#34abhiramkast wants to merge 1 commit into
abhiramkast wants to merge 1 commit into
Conversation
Contributor
Author
|
Done by Josh in a different PR |
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.
Problem
The CLI is only distributed via
curl | sudoinstall today. Enterprise / corp-network users get blocked on unsigned curl-pipe-sh, and we have no npm channel for devs. We also have no provenance signing on releases.Solution
Enable npm publishing on every
mainrelease via npm's OIDC Trusted Publishing — noNPM_TOKENsecret needed, provenance attestations attached automatically.@semantic-release/npmtonpmPublish: true.id-token: writepermission so GitHub issues an OIDC token for the workflow.NPM_TOKENfrom the env block.Pre-merge requirement
Register the trusted publisher on npmjs.com before this PR is merged. Once merged, the next release will try to publish via OIDC immediately — if the trusted publisher isn't registered yet, that release fails the auth handshake.
At https://www.npmjs.com/package/@linqapp/cli → Settings → Trusted Publishers:
linq-teamlinq-clirelease.ymlnpm publishConfirm registration is saved, then this PR can be merged. The
NPM_TOKENGitHub Actions secret can be deleted after the first successful publish.🔗 Linear Issue