Publish audited Deixic SDK from public repo with npm OIDC - #26
Merged
Merged
Conversation
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.
Summary
Publish the Deixic TypeScript SDK from its public repository using npm trusted publishing. The release workflow runs on the repository's existing GitHub-hosted runner class, uses the exact public-repository identity in package metadata, and needs no long-lived npm publish token.
Every release builds and packs the package, audits the built tarball's files and embedded protobuf descriptor closure, publishes through OIDC, then downloads and audits the registry tarball and installs it in a clean project. The regular PR CI runs the same package audit.
Cause
The Mono release workflow's self-hosted runner cannot use npm trusted publishing, and its token fallback is expired. The public repository already uses GitHub-hosted CI and its package metadata identifies
dx-corp/deixic-node, so the trusted publisher belongs here.Verification
actionlint .github/workflows/ci.yml .github/workflows/publish.ymlpassed.deixicpublic/v1/sdk.proto, packagedeixicpublic.v1, with the timestamp import.Rollout
After merge, configure npm trusted publisher for
@evalops/deixic-sdkasdx-corp/deixic-node, workflowpublish.yml, then dispatch version0.1.7frommainand verify the registry integrity and clean install receipts.