Skip to main content

SKY-D361 · CI/CD pipelines

Dependabot cooldown under seven days

Low

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
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

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

.github/dependabot.yml · YAMLReported on line 3
version: 2updates:  - package-ecosystem: npm    directory: /    schedule:      interval: daily  - package-ecosystem: github-actions    directory: /    schedule:      interval: weekly    cooldown:      default-days: 7

What Skylos leaves alone

.github/dependabot.yml · YAML
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: 7

Why 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

  1. Reads the one file GitHub reads: .github/dependabot.yml (or .yaml) at the top of the scanned folder. The file must say version: 2 and have an updates list.
  2. Skips an entry with open-pull-requests-limit: 0, which turns version updates off.
  3. Works out the shortest wait: three days when there is no cooldown or no default-days; zero when exclude lists "*"; three days when an include list leaves some packages out. For ecosystems with SemVer settings (such as npm, pip, cargo, maven) the smallest of semver-major-days, semver-minor-days, semver-patch-days and, when one of them is missing, default-days. For github-actions, docker, terraform and other days-only ecosystems, default-days alone.
  4. An entry with a day value that is not a whole number of zero or more is skipped.
  5. 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.

.github/dependabot.yml · YAML · the fix, against the flagged file
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: 7

When 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.

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.