Draft
Conversation
パッケージマネージャーをpnpm 10.33.0に統一し、 セキュリティ関連の設定を追加した。 主な変更: - .npmrc / pnpm-workspace.yaml でセキュリティポリシーを設定 - 全依存関係を最新バージョンに更新 (pnpm update --latest) - バージョンを完全固定 (save-exact) - ESLint flat config (eslint.config.mjs) へ移行 (gts 7.0)
pnpm update --latest および gts 7.0 への移行に伴い、 破壊的変更や新しいlintルールに対応するコード修正を行った。
lodash 4.18.0で修正済みだが、公開から7日未満のため minimumReleaseAgeによりインストールできない。 7日経過後にignoreCvesを削除しoverridesで修正すること。
- minimumReleaseAgeExcludeでlodash/lodash-esをmin-release-ageから除外 - overridesでlodash<=4.17.23を>=4.18.1に強制更新 - GHSA-r5fr-rjxr-66jc (Code Injection) の修正バージョンに更新 - ignoreCvesエントリを削除(脆弱性が修正済みのため不要)
lodash 4.18.1がminimumReleaseAge (7日) を超えたため、 minimumReleaseAgeExcludeからlodash/lodash-esを削除。 overridesによるセキュリティ強制は維持。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
概要
パッケージマネージャーをpnpmに統一し、セキュリティ設定を追加するPRです。
変更内容
1. パッケージマネージャー移行
packageManagerフィールドで固定)enginesフィールドで固定)2. セキュリティ設定
.npmrc/pnpm-workspace.yamlでセキュリティポリシーを設定audit-level: high(高以上の脆弱性を検知)ignore-scripts: true(postinstall等のスクリプト実行を無効化)save-exact: true(バージョン完全固定)engine-strict: true(Nodeバージョン厳格チェック)minimumReleaseAge: 10080(7日未満のパッケージをブロック)3. 依存関係の最新化
pnpm update --latest)eslint.config.mjs) へ移行 (gts 7.0)4. CI/CD更新
pnpm auditステップを追加確認事項
pnpm install成功pnpm run build成功pnpm run test成功 (テストがある場合)