Add npm provenance

オープン
#26,899 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
744

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/sentry-javascript のほかの issue

getsentry/sentry-javascript の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。