Does the cooldown option for dependabot also affect transitive dependencies? #174897
Replies: 3 comments 2 replies
-
|
Subject: Re: Dependabot cooldown and transitive dependencies @mattesja Absolutely!! The mechanism you're referring to as a "cooldown"—properly called dependency grouping—is fully effective for updates triggered by transitive dependency vulnerabilities. It's a critical workflow for mitigating supply-chain risks without creating PR fatigue. Imagine your project is a car. 1)You chose the engine (this is your direct dependency, a package you added yourself). The process is robust. Dependabot identifies the issue in the transitive dependency and creates a PR for the direct one. Your grouping rules then catch that PR, bundling it as configured. This lets you maintain a strong security posture without getting overwhelmed |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Does the cooldown option also affect transitive dependencies for npm (or other packages managers)?
Especially in the node ecosystem supply-chain-attacks on npm packages are a big risk, which would be included via transitive dependencies in the build.
Update: Update transitive dependency did not use cooldown option in my trial
I've just tested the cooldown feature with a dummy repo. It seems, that dependabot does not recognize the cooldown option for transitive dependencies.
Here's what I've tested:
I've create a repo with some old dependencies https://github.com/mattesja/node-devcontainers:
I've configured dependabot with a cooldown period of 23 days.
I expect, that @jest/core is updated to the current version, but @babel/compat-data only to 7.28.0
As a direct dependency @babel/compat-data is only updated to 7.28.0
Check package-lock.json in https://github.com/mattesja/node-devcontainers/pull/3/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519
direct dependency is updated to correct version:
But as a transitive dependency @babel/compat-data is updated to 7.28.4
Check line 875 of package-lock.json in
https://github.com/mattesja/node-devcontainers/pull/4/files#diff-053150b640a7ce75eff69d1a22cae7f0f94ad64ce9a855db544dda0929316519R875
transitive dependency is updated to unwanted newest version:
Question
Is there a mistake in my test or are transitive dependencies currently not supported for the cooldown option?
Beta Was this translation helpful? Give feedback.
All reactions