使用 Trusted Publishing 提升 npm 包发布安全性
<p><a rel="bookmark" href="https://qq52o.me/2862.html" title="使用 Trusted Publishing 提升 npm 包发布安全性 - 沈唁志"><img src="http://img.qq52o.me/wp-content/uploads/2026/04/trusted-publishing.png" /></a></p>在现代前端生态中,npm 包发布流程的安全性越来越重要。 传统的发布方式通常依赖长期有效的 npm token,一旦泄露,攻击者就可以直接发布恶意版本,带来严重的供应链风险。为了解决这一问题,npm 在 2025 年 7 月份推出了 Trusted Publishing(可信发布) 机制。 什么是 Trusted Pu […]