Add npm provenance

Aberta
#26,899 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
56/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
github-actions, typescript
Domínio
release, security

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
TypeScript
Estrelas
8.8k
Forks
1.9k
Merge médio
1d 8h
PRs com merge (30d)
744

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de getsentry/sentry-javascript

Todas as issues de getsentry/sentry-javascript

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.