Skip to main content

require-dependabot-patterns-for-multi-ecosystem-group

Rule catalog ID: R082

Targeted pattern scopeโ€‹

Dependabot update entries that opt into multi-ecosystem-group.

What this rule reportsโ€‹

This rule reports grouped update entries that do not declare a non-empty patterns list.

Why this rule existsโ€‹

GitHub's multi-ecosystem update guide calls out patterns as a required part of assigning ecosystems to a group. Without patterns, the grouping intent is underspecified and Dependabot may not consolidate updates the way the configuration suggests.

โŒ Incorrectโ€‹

version: 2
multi-ecosystem-groups:
app:
schedule:
interval: "weekly"

updates:
- package-ecosystem: "npm"
directory: "/"
multi-ecosystem-group: "app"

โœ… Correctโ€‹

version: 2
multi-ecosystem-groups:
app:
schedule:
interval: "weekly"

updates:
- package-ecosystem: "npm"
directory: "/"
multi-ecosystem-group: "app"
patterns: ["*"]

Additional examplesโ€‹

Use patterns: ["*"] when the goal is to group every dependency in that ecosystem rather than a narrower allowlist.

ESLint flat config exampleโ€‹

import githubActions from "eslint-plugin-github-actions-2";

export default [githubActions.configs.dependabot];

When not to use itโ€‹

Disable this rule only if the repository intentionally avoids multi-ecosystem updates entirely.

Further readingโ€‹