trust downgrade for `webpack-dev-middleware` v7

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

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
50/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, webpack
領域
release

調査の方向性

このレポートは webpack-dev-middleware v7 の公開メタデータと、pnpm's trustPolicy における no-downgrade の動作に関するものであり、対象となるソースファイルやテストは特定されていません。まず v7 の公開設定と trusted-publishing の設定を確認し、その後、新しい v7 の公開によって pnpm の trust-downgrade エラーが発生しなくなったことを検証してください。

索引モデルが issue の本文から書いたものです。

説明

Have you used AI?

None

Bug Description

Hey

I don't know if this should be considered a bug, but since this package is widely used, I just wanted to report this little DX annoyance in case you'd want to fix it.

pnpm can detect package trust-level downgrades (staged publishing -> trusted publishing -> provenance -> publish) to prevent malicious takeovers.

https://pnpm.io/settings/dependency-resolution#trustpolicy

Unfortunately it's not based on semver but publication dates, and v8 has trusted publishing while v7 doesn't.

Due to the recent v7 npm publish after a v8 that uses trusted publishing, we now have a downgrade detected:

Image

This means newly initialized Docusaurus sites using pnpm with trustPolicy: no-downgrade will get an error such as:

[ERR_PNPM_TRUST_DOWNGRADE] High-risk trust downgrade for "[email protected]" (possible package takeover)

This error happened while installing the dependencies of @docusaurus/[email protected]
 at [email protected]

It doesn't seem mandatory to fix the problem, but if you can publish a v7 with trusted publishing, that would fix the problem and prevent users from getting this pnpm error.

Link to Minimal Reproduction and step to reproduce

N/A

Expected Behavior

no trust downgrade

Actual Behavior

trust downgrade detected by pnpm

Environment
N/A
Is this a regression?

None

Last Working Version

No response

Additional Context

No response

主要言語
JavaScript
スター
2.5k
フォーク
383
平均マージ
4時間 54分
マージ済み PR(30日)
12

環境構築

はじめの一歩

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

webpack/webpack-dev-middleware のほかの issue

webpack/webpack-dev-middleware の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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