SKY-D361 · CI/CD pipelines
Dependabot cooldown under seven days
A Dependabot cooldown makes it wait a number of days after a release before it opens a version update pull request. Without one, Dependabot waits three days. SKY-D361 reports update entries whose shortest wait is under seven days.
- Languages
- Dependabot configuration
- Quality gate
- counted toward the gate limits (full and diff scans)
- Finding type
- review
Why it matters
Hijacked package releases are usually found and pulled within a few days. A short wait lets Dependabot propose the bad version while it is still live, and a busy reviewer may merge it. Security updates are never delayed by a cooldown, so a longer wait costs little.
What Skylos flags
version: 2updates: - package-ecosystem: npm directory: / schedule: interval: daily - package-ecosystem: github-actions directory: / schedule: interval: weekly cooldown: default-days: 7What Skylos leaves alone
version: 2updates: - package-ecosystem: npm directory: / schedule: interval: daily open-pull-requests-limit: 0 - package-ecosystem: github-actions directory: / schedule: interval: weekly cooldown: default-days: 7Why Skylos leaves it alone
The npm entry still has no cooldown, but open-pull-requests-limit: 0 turns its version updates off; only security updates run, and a cooldown never delays those.
How Skylos decides
- Reads the one file GitHub reads:
.github/dependabot.yml(or.yaml) at the top of the scanned folder. The file must sayversion: 2and have anupdateslist. - Skips an entry with
open-pull-requests-limit: 0, which turns version updates off. - Works out the shortest wait: three days when there is no
cooldownor nodefault-days; zero whenexcludelists"*"; three days when anincludelist leaves some packages out. For ecosystems with SemVer settings (such asnpm,pip,cargo,maven) the smallest ofsemver-major-days,semver-minor-days,semver-patch-daysand, when one of them is missing,default-days. Forgithub-actions,docker,terraformand other days-only ecosystems,default-daysalone. - An entry with a day value that is not a whole number of zero or more is skipped.
- When any entry waits under seven days, reports one LOW finding for the file that lists every such entry, on the line of the first one's setting, or of the entry itself when it has no cooldown.
How to fix it
Give every entry a cooldown with default-days of 7 or more. Set the SemVer-specific days, if you use them, to 7 or more as well.
version: 2updates: - package-ecosystem: npm directory: / schedule: interval: dailyAdded: cooldown:Added: default-days: 7Added: semver-major-days: 14 - package-ecosystem: github-actions directory: / schedule: interval: weekly cooldown: default-days: 7When it can be wrong
- Internal packages your own team releases are delayed too unless you list them under
cooldown.exclude, which makes those packages wait zero days; listing"*"there is reported. - Because there is one finding per file, its line moves to the next short entry when you fix or silence the first one.
Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.
How to silence it
Put
# skylos: ignore[SKY-D361]and a reason as a YAML comment on the reported line, or as a comment line directly above it. It takes that one entry out of the finding.YAML cooldown: # skylos: ignore[SKY-D361] internal SDK, released by us default-days: 1[tool.skylos] ignore = ["SKY-D361"]turns the rule off for the whole project.