Add npm provenance

Offen
#26,899 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
56/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
github-actions, typescript
Bereich
release, security

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
8.8k
Forks
1.9k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
744

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus getsentry/sentry-javascript

Alle Issues in getsentry/sentry-javascript

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.