chore: gate npm install with min-release-age#2
Draft
tapih wants to merge 3 commits into
Draft
Conversation
milo audit で npm-only project が cooldown 未設定として検出されたため、 `.npmrc#min-release-age=7` (7 days) を追加する。 npm v11.10+ で effective。 Refs: knowledge-work/knowledgework#116122 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
milo policy MUST: 全 JS / TS repo に .npmrc#ignore-scripts=true。 cross-PM (npm 経路 等) で lifecycle script を一律 block する kill switch を 追加し、 save-exact=true も併設する。 Refs: knowledge-work/knowledgework#116124 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
cooldown (npm v11.10+ min-release-age) を有効化するため node を mise.toml で固定。 node 24 系は npm 11.x をバンドルしているため min-release-age を そのまま使える。
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.
Summary
What
.npmrcを作成しmin-release-age=7(7 days) を設定する。Why
knowledge-work/knowledgework #116122 のサプライチェーン対策 (検疫期間設定)。 milo audit (
npm.tsv) で npm-only project が cooldown 未設定として検出された。 npm v11.10+ から.npmrc#min-release-ageが native サポート。Note
min-release-ageは npm v11.10+ で effective (それ未満では silently ignored、 設定自体は無害)。 CI / dev 環境の npm version が v11.10 以上であることを別途確認推奨。References