|
| 1 | +--- |
| 2 | +title: Multi-ecosystem updates |
| 3 | +intro: Multi-ecosystem updates combine dependency updates across multiple package ecosystems into a single pull request, reducing review overhead and simplifying your update workflow. |
| 4 | +contentType: concepts |
| 5 | +versions: |
| 6 | + feature: dependabot-multi-ecosystem-support |
| 7 | +shortTitle: Multi-ecosystem updates |
| 8 | +--- |
| 9 | + |
| 10 | +## What are multi-ecosystem updates? |
| 11 | + |
| 12 | +Multi-ecosystem updates allow {% data variables.product.prodname_dependabot %} to group dependency updates across different package ecosystems such as npm, Docker, Python, and Terraform into a single pull request per group. |
| 13 | + |
| 14 | +Instead of receiving separate pull requests for each ecosystem, you receive one consolidated pull request containing all updates for the ecosystems in that group. |
| 15 | + |
| 16 | +## How multi-ecosystem updates work |
| 17 | + |
| 18 | +When you configure a multi-ecosystem group: |
| 19 | + |
| 20 | +1. You define the group with a schedule in the `multi-ecosystem-groups` section of your `dependabot.yml` file. |
| 21 | +1. You assign individual package ecosystems to the group using the `multi-ecosystem-group` key. |
| 22 | +1. You specify which dependencies to include using the `patterns` key for each ecosystem. |
| 23 | +1. {% data variables.product.prodname_dependabot %} checks for updates according to the group's schedule. |
| 24 | +1. A single pull request is created containing updates from all ecosystems in the group. |
| 25 | +1. The PR uses the group identifier in both the branch name and title. |
| 26 | + |
| 27 | +## When to use multi-ecosystem updates |
| 28 | + |
| 29 | +Multi-ecosystem updates are particularly useful for: |
| 30 | + |
| 31 | +* **Infrastructure projects** that use multiple technologies (Docker, Terraform, Python scripts) |
| 32 | +* **Full-stack applications** with frontend and backend dependencies that should be updated together |
| 33 | +* **Cross-platform libraries** that need synchronized protocol versions across languages |
| 34 | +* **Monorepos** with services in different languages that share versioning |
| 35 | + |
| 36 | +## Multi-ecosystem versus single-ecosystem groups |
| 37 | + |
| 38 | +{% data variables.product.prodname_dependabot %} supports two types of grouping: |
| 39 | + |
| 40 | +**Multi-ecosystem groups:** |
| 41 | +* Span multiple `package-ecosystem` entries in your `dependabot.yml` file |
| 42 | +* Require the `patterns` key to specify which dependencies to include |
| 43 | +* Have their own schedule defined in the `multi-ecosystem-groups` section |
| 44 | +* Use the `multi-ecosystem-group` key to assign ecosystems to a group |
| 45 | + |
| 46 | +**Single-ecosystem groups:** |
| 47 | +* Work within one package ecosystem |
| 48 | +* Use the `groups` key within an `updates` entry |
| 49 | +* Inherit the schedule from the parent `updates` entry |
| 50 | +* Better for organizing dependencies within a single package manager |
| 51 | + |
| 52 | +Use multi-ecosystem groups when you want to combine updates across different package managers. Use single-ecosystem groups when you want to organize dependencies within a single package manager (for example, grouping all AWS-related npm packages together). |
| 53 | + |
| 54 | +### Configuration merging behavior |
| 55 | + |
| 56 | +Some configuration options can be set at both the group level and ecosystem level. {% data variables.product.prodname_dependabot %} combines these values differently depending on the option: |
| 57 | + |
| 58 | +**Additive options** (values are merged): |
| 59 | +* `assignees` - All assignees from both levels are assigned to the pull request |
| 60 | +* `labels` - All labels from both levels are applied to the pull request |
| 61 | + |
| 62 | +For example, if you assign `@platform-team` at the group level and `@docker-admin` at the Docker ecosystem level, the resulting pull request will be assigned to both `@platform-team` and `@docker-admin`. |
| 63 | + |
| 64 | +**Group-only options** (can only be set at group level): |
| 65 | +* `milestone` |
| 66 | +* `commit-message` |
| 67 | +* `target-branch` |
| 68 | +* `pull-request-branch-name` |
| 69 | + |
| 70 | +Attempting to set these options at the ecosystem level will cause a configuration error. |
| 71 | + |
| 72 | +For a complete reference of all available configuration options and their behavior, see [AUTOTITLE](/code-security/reference/supply-chain-security/dependabot-options-reference#multi-ecosystem-groups). |
| 73 | + |
| 74 | +## Use cases |
| 75 | + |
| 76 | +### Infrastructure projects |
| 77 | + |
| 78 | +Infrastructure code often uses multiple technologies—Docker containers, Terraform for cloud resources, and Python scripts for automation. Grouping these updates together simplifies review and deployment coordination. |
| 79 | + |
| 80 | +**Why group these together:** Infrastructure changes often need to be deployed together. Having separate PRs for each technology creates coordination overhead and makes it harder to track what needs to be deployed as a unit. |
| 81 | + |
| 82 | +**Example scenario:** You have Docker images for your services, Terraform modules for AWS resources, and Python scripts for automation tasks. A single weekly "infrastructure" pull request contains updates for all three, making it easier to review and deploy infrastructure changes together. |
| 83 | + |
| 84 | +### Full-stack applications |
| 85 | + |
| 86 | +Web applications with frontend and backend components benefit from updating dependencies together to ensure compatibility and streamline testing. |
| 87 | + |
| 88 | +**Why group these together:** Frontend and backend often depend on each other. Updating them together ensures you can test the full application stack in one go, rather than merging frontend changes and then discovering backend incompatibilities later. |
| 89 | + |
| 90 | +**Example scenario:** Your React frontend and Rails backend are updated daily in a single "app-dependencies" pull request, allowing you to test the complete application together before merging. |
| 91 | + |
| 92 | +### Cross-platform libraries |
| 93 | + |
| 94 | +Libraries or services that use the same protocols across different languages (like gRPC and Protocol Buffers) need to keep library versions synchronized across all implementations. |
| 95 | + |
| 96 | +**Why group these together:** Protocol libraries need to stay compatible across different language implementations. Updating them together prevents version mismatches that could cause communication failures between services. |
| 97 | + |
| 98 | +**Example scenario:** Your Node.js and Ruby services both use gRPC. A single pull request updates both `@grpc/grpc-js` (npm) and `grpc` (bundler) together, ensuring protocol compatibility. |
| 99 | + |
| 100 | +### Monorepos with multiple services |
| 101 | + |
| 102 | +Large repositories containing multiple services in different languages benefit from grouping updates by team responsibility or deployment cadence. |
| 103 | + |
| 104 | +**Why group these together:** Different teams own different parts of the monorepo, and updates should be routed to the appropriate reviewers. Or services are deployed together and need coordinated updates. |
| 105 | + |
| 106 | +**Example scenario:** Your monorepo has a Python API service, a Go worker service, and a Node.js frontend. You create separate groups for "backend-services" (Python + Go) and "frontend" (Node.js), each with different schedules and assignees. |
| 107 | + |
| 108 | +## Example: Complex multi-group configuration |
| 109 | + |
| 110 | +This example shows how a complex project might use multiple groups with different update strategies: |
| 111 | + |
| 112 | +```yaml copy |
| 113 | +version: 2 |
| 114 | + |
| 115 | +multi-ecosystem-groups: |
| 116 | + # Infrastructure updates - weekly, tracked in milestone |
| 117 | + infrastructure: |
| 118 | + schedule: |
| 119 | + interval: "weekly" |
| 120 | + assignees: ["@platform-team"] |
| 121 | + labels: ["infrastructure", "dependencies"] |
| 122 | + milestone: 10 |
| 123 | + |
| 124 | + # Application code updates - daily, with development team |
| 125 | + full-stack: |
| 126 | + schedule: |
| 127 | + interval: "daily" |
| 128 | + assignees: ["@full-stack-team"] |
| 129 | + labels: ["full-stack"] |
| 130 | + |
| 131 | +updates: |
| 132 | + # Docker images - infrastructure group with additional docker expertise |
| 133 | + - package-ecosystem: "docker" |
| 134 | + directory: "/" |
| 135 | + patterns: ["nginx", "redis", "postgres"] |
| 136 | + assignees: ["@docker-admin"] # Adds to @platform-team |
| 137 | + labels: ["docker"] # Adds to infrastructure, dependencies |
| 138 | + multi-ecosystem-group: "infrastructure" |
| 139 | + |
| 140 | + # Terraform - infrastructure group |
| 141 | + - package-ecosystem: "terraform" |
| 142 | + directory: "/" |
| 143 | + patterns: ["aws", "terraform-*"] |
| 144 | + multi-ecosystem-group: "infrastructure" |
| 145 | + |
| 146 | + # Frontend - full-stack group with frontend focus |
| 147 | + - package-ecosystem: "npm" |
| 148 | + directory: "/frontend" |
| 149 | + patterns: ["react", "lodash", "@types/*"] |
| 150 | + labels: ["frontend"] # Adds to full-stack |
| 151 | + multi-ecosystem-group: "full-stack" |
| 152 | + |
| 153 | + # Backend - full-stack group with backend specialist |
| 154 | + - package-ecosystem: "bundler" |
| 155 | + directory: "/backend" |
| 156 | + patterns: ["rails", "pg", "sidekiq"] |
| 157 | + assignees: ["@backend-dev"] # Adds to @full-stack-team |
| 158 | + multi-ecosystem-group: "full-stack" |
| 159 | +``` |
| 160 | +
|
| 161 | +## Next steps |
| 162 | +
|
| 163 | +* [AUTOTITLE](/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/configuring-multi-ecosystem-updates) |
0 commit comments