Developer Publishes npm Packages Without Stored Tokens Using OIDC and Sigstore
A developer shipped version 0.3.0 of SolAudit, a Solana static analyzer, with no npm token stored in CI secrets or on their machine. The method relies on npm's trusted publishing, which uses OpenID Connect so the GitHub Actions runner proves its identity and receives a short-lived, publish-scoped credential. Sigstore provenance attestations then let anyone verify that a package's tarball was built from a specific commit and workflow run. The author says the setup took about 30 minutes and describes this as a response to supply-chain risks posed by long-lived publish tokens. The walkthrough also covers configuring the trusted publisher on npmjs.com and two common pitfalls, including exact workflow filename matching.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in