build: npm の min-release-age と dependabot cooldown を 7 日に設定する - #73
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
2026-08-04 に発生した keyv 等 jaredwray 管理パッケージへのサプライチェーン攻撃を受けての緩和策です。
今回の攻撃では悪性バージョンが公開から数時間で takedown されており、インストール解決に検疫期間(cooldown)を設けていた環境は被害を免れています。
変更内容
.npmrcを追加し、min-release-age=7を設定します。npm install/npm updateなどでの新規バージョン解決時に、公開から 7 日未満のバージョンがインストールされなくなります.github/dependabot.ymlの npm エコシステムにcooldown: default-days: 7を設定します。dependabot の version update が公開から 7 日間保留されます(既定は 3 日)影響
npm ciや lockfile に固定済みのバージョンのインストールには影響しませんmin-release-ageは npm v11 以降の設定です。未対応の npm では警告が出るだけで無視されます🤖 Generated with Claude Code