Implementing Dependabot security updates in monorepo with npm workspaces #176055
Unanswered
girishlade111
asked this question in
Code Security
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
We've recently migrated to a monorepo structure using npm workspaces for our Node.js application suite. The repository contains 15+ packages with interdependencies, and we're trying to implement a robust automated security patching strategy using Dependabot.
Current setup:
/packages/*directoryChallenges we're facing:
Dependabot PR organization: Dependabot is creating separate PRs for each workspace package, which leads to 20-30 PRs when a widely-used dependency needs updating. This becomes difficult to manage and review.
Dependency version conflicts: When Dependabot updates a dependency in one workspace, it sometimes creates version mismatches with other workspaces that depend on the same package.
Testing strategy: We need to ensure that security updates in one package don't break dependent packages within the monorepo before merging.
Grouped updates: We've tried using
dependabot.ymlgrouping features, but we're not sure if we're configuring it optimally for our monorepo structure.Questions:
dependabot.ymlconfiguration for npm workspaces in a monorepo? Should we have one configuration or separate ones per workspace?Would appreciate any insights from teams managing security updates in similar monorepo architectures!
Beta Was this translation helpful? Give feedback.
All reactions