Add npm provenance

未關閉
#26,899 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
56/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github-actions, typescript
領域
release, security

研究方向

Start by reading the npm provenance documentation linked in the issue and tracing how this repository publishes its npm packages. Identify the release workflow and package publishing steps, then check how provenance can be enabled for them. Done means published packages include provenance linking them to the Git commit and CI workflow that produced them.

由索引模型根據 Issue 內容生成。

描述

Feature Waiting for: Product Owner
Problem Statement

Hi, I'm the maintainer of PostCSS and Size Limit (thanks for using my tool).

I noticed that Sentry releases on npm don't have provenance. It would be great to add it, especially since Sentry runs on other people's websites.

  1. Right now, if someone steals your npm publishing credentials, they could publish a modified package without touching GitHub. Provenance links a release to a specific CI run and Git commit, making suspicious releases easier to spot.
  2. Other developers can trust your releases more because provenance makes hidden code injection harder. Right now, you can inject malicious code into a package and run npm publish without ever committing that code to GitHub. With provenance, developers can verify which GitHub commit and CI workflow produced the package.
  3. And you get a nice green checkmark on your npm package page, which looks cool :)
Solution Brainstorm

npm provenance is an official tool to garantee the package origin.

Additional Context

We are right now enrolling it across PostCSS ecosystem. Here is our guide if you need some help:

https://evilmartians.com/chronicles/the-secure-way-to-release-an-npm-package

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

主要語言
TypeScript
星號
8.8k
分支
1.9k
平均合併
1 天 8 小時
30 天內合併 PR
744

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

getsentry/sentry-javascript 的其他 Issue

查看 getsentry/sentry-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。