You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OIDC token exchange drops the registry path prefix #124
v11: pnpm11/releasing/commands/src/publish/oidc/authToken.ts (new URL('/-/npm/...', registry))
For a registry hosted under a path (for example https://example.com/npm/), the exchange goes to https://example.com/-/npm/v1/oidc/..., while the publish and dist-tag requests keep /npm/. npm-registry-fetch keeps the prefix.
Fix both stacks with a relative join against the normalized registry URL, and add a path-prefixed registry test for publish and dist-tag.
Found during the review of pnpm/pnpm#16840, which reuses this exchange for pnpm dist-tag. The behavior predates that PR.
Written by an agent (Claude Code, claude-opus-5-5).
Activity
fix(publish): preserve registry paths in OIDC token exchanges
fix(publish): preserve registry paths in OIDC token exchanges
fix(publish): preserve registry paths in OIDC token exchanges (pnpm#1…