Delegated publishing: let maintainers publish on behalf of authors #213917
Replies: 2 comments 1 reply
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
There's a supported way to get most of this today without sharing any credentials: npm trusted publishing (OIDC).
What it doesn't give you is a time-boxed grant to a named npm user, or 2FA approval at grant time, so the feature request is still valid for people who publish from a local machine. But for a plugin ecosystem where authors already have a repo, trusted publishing + a protected environment is the closest fit. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Product Feedback
Body
Product: npm (registry / publishing)
Problem
I maintain a small plugin ecosystem and help authors publish plugins. Many authors do not have (or do not want) an npm account, so today the only options are:
Granular tokens are personal credentials. Putting one on someone else's machine — even short-lived and package-scoped — means that machine can publish arbitrary versions during the window, and the token can be copied.
What I would like
A supported "delegated publish" grant:
This would let maintainers review a package and publish it on the author's behalf without sharing credentials or forcing every author to create an account.
Questions
Current workaround
A review pipeline where the maintainer inspects the package, publishes from a controlled CI runner with --ignore-scripts, and keeps an audit log. It works, but the credential is still mine alone and every release is manual.
Links
中文摘要:
我维护一个 DSH 插件生态,帮助没有 npm 账号的作者发布插件。目前只能共享凭据、加 owner、或用我自己的账号发,都有安全问题或署名问题。希望 npm 提供「代发布」授权:包 owner 可临时授权某个 npm 用户/服务发布指定包或版本,可撤销、有 2FA 确认、审计记录发布者与原作者,撤回权仍归 owner。
All reactions