Skip to content

ci: Dependabot のバージョン更新を production 依存だけに絞る - #77

Merged
uidev1116 merged 1 commit into
masterfrom
chore/dependabot-production-only
Jul 27, 2026
Merged

ci: Dependabot のバージョン更新を production 依存だけに絞る#77
uidev1116 merged 1 commit into
masterfrom
chore/dependabot-production-only

Conversation

@uidev1116

Copy link
Copy Markdown
Contributor

背景

グループ PR(#76「bump the patch-and-minor group with 30 updates」)が CI で BLOCKED になっていました。

peer eslint@"^9 || ^10" from eslint-plugin-react-refresh@0.5.3
Found: eslint@8.57.1

eslint-plugin-react-refresh の 0.4 → 0.5 は Dependabot 上は minor 扱いですが、0.x のマイナーは実質破壊的変更で、peer が eslint 9 以上に変わっています。dependabot.yml でメジャーを除外していても防げません。そして 30 件を 1 本にまとめているため、この 1 件で全部が止まります

変更

allow: [{ dependency-type: production }] を追加し、配布物に入る依存だけを対象にします。

  • 開発ツール(eslint / jest / webpack 系)は更新しても配布物に影響しない一方、peer の噛み合いでこの種の詰まりを起こします
  • 開発ツールの脆弱性は Dependabot security updatesdependabot.yml とは独立に動く機能)で引き続き拾われます

あわせて

#76 はこの設定では作り直されるため閉じます。

なお eslint 8 → 9(flat config 移行)は別途計画したい作業です。移行すれば eslint-plugin-react-refresh も追随できます。

開発ツールまで対象にしていたため、1 パッケージの peer 不整合でグループ PR 全体が止まった
(eslint-plugin-react-refresh 0.5 が eslint 9 以上を要求し、eslint 8 系の本リポジトリでは
npm ci が ERESOLVE で失敗。30 件をまとめた PR がそのまま BLOCKED になった)。

0.x のマイナーは実質破壊的変更だが Dependabot は minor として扱うため、「メジャーを除外」
だけでは防げない。配布物に影響しない開発ツールを対象から外すのが確実で、開発ツールの
脆弱性は security updates 側(設定ファイルとは独立に動く機能)で拾われる。
@uidev1116
uidev1116 merged commit 9859d5f into master Jul 27, 2026
2 checks passed
@uidev1116
uidev1116 deleted the chore/dependabot-production-only branch July 27, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant