Move npm publishing in GitHub Actions from NPM_TOKEN to trusted publishing (OIDC).
MCPpedia last refreshed this data
io.github.Continuous-Actions/go-tokenless is an MCP server that move npm publishing in GitHub Actions from NPM_TOKEN to trusted publishing (OIDC). Its tool list has not been published yet over stdio, sse and http, requires no API key, and scores 85/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"go-tokenless": {
"args": [
"-y",
"go-tokenless",
"mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Move npm publishing in GitHub Actions from NPM_TOKEN to trusted publishing (OIDC).
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y 'go-tokenless' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked go-tokenless against OSV.dev.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in developer-tools
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
MCP server for using the GitLab API
MCP server for enterprise local codebase indexing, semantic search, and code dependency graphs.
An open-source AI agent that brings the power of Gemini directly into your terminal.
MCP Security Weekly
Get CVE alerts and security updates for io.github.Continuous-Actions/go-tokenless and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Delete your NPM_TOKEN. One command switches npm publishing in GitHub Actions to trusted publishing (OIDC). No long-lived token is stored anywhere, and every release gets a provenance badge.
npm is retiring token publishing: from January 2027 a token can no longer publish on its own (npm docs).
Contents
From the root of the repository that publishes to npm:
npx go-tokenless # 1. preview: lists every change and shows a diff, writes nothing
npx go-tokenless apply # 2. edit the workflow and package.json files
Then follow the Next steps it prints: commit the change, connect the package to the workflow on npm, and delete the old secret. Needs Node 22.14+.
Only the lines that need to change are touched: comments, quoting and layout in your workflows are kept, and in package.json only the repository field is edited. Before writing, go-tokenless re-reads both versions and refuses if anything other than the migration would change.
| Problem in your release workflow | What go-tokenless does |
|---|---|
NODE_AUTH_TOKEN / NPM_TOKEN on the publish job (or the workflow) | Removes it, so the secret can be deleted. npm prefers OIDC but falls back to a configured token, which would keep the old token in use |
| Job can't request an OIDC token | Adds permissions: id-token: write, keeping the permissions it had |
| npm older than 11.5.1 (Node 22 and below) | Adds npm install -g npm@^12, or moves Node < 22 to 24 |
actions/setup-node without registry-url | Adds registry-url: https://registry.npmjs.org |
JS-DevTools/npm-publish below v4 | Updates it to v4, which no longer requires a token |
A script writes _authToken to .npmrc | Removes those lines |
repository missing or in the wrong form in package.json | Sets git+https://github.com/<owner>/<repo>.git (with directory in monorepos) |
It stops with exit code 1 and writes nothing when a person needs to decide:
pull_request_target, issue_comment, workflow_run and similar triggers. Granting it OIDC would let a fork publish.repository pointing at another repo.