---
title: Dependabot cooldown
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > Code Security > Infrastructure as Code (IaC)
  Security > IaC Security Rules > Dependabot cooldown
---

# Dependabot cooldown

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com, us2.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site.md). ().
{% /alert %}

{% /callout %}

## Metadata{% #metadata %}

**Id:** `f2a3b4c5-d6e7-48f9-a0b1-c2d3e4f5a6b7`

**Cloud Provider:** GitHub

**Platform:** CICD

**Severity:** Medium

**Category:** Best Practices

#### Learn More{% #learn-more %}

- [Provider Reference](https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#cooldown)

### Description{% #description %}

Dependabot updates must include an adequate cooldown period to avoid excessive automated pull requests that can overwhelm maintainers and consume CI/CD resources.

In GitHub Dependabot configuration files (`.github/dependabot.yml`), each `updates` entry should define `cooldown.default-days` and set it to at least 7. If the `cooldown` block is missing or `default-days` is absent, Dependabot treats it as 0 (no cooldown) and will be flagged. Values less than the configured minimum (7 days by default) are also flagged. Fixes can add or increase `default-days` to 7.

Secure configuration example:

```yaml
updates:
  - package-ecosystem: pip
    directory: /
    cooldown:
      default-days: 7
```

## Compliant Code Examples{% #compliant-code-examples %}

```yaml
version: 2
updates:
  # Valid: Exactly at threshold (7 days)
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "daily"
    cooldown:
      default-days: 7

  # Valid: Above threshold (14 days)
  - package-ecosystem: "pip"
    directory: "/"
    schedule:
      interval: "weekly"
    cooldown:
      default-days: 14

  # Valid: Well above threshold (30 days)
  - package-ecosystem: "docker"
    directory: "/"
    schedule:
      interval: "monthly"
    cooldown:
      default-days: 30

  # Valid: With additional cooldown settings
  - package-ecosystem: "cargo"
    directory: "/"
    schedule:
      interval: "daily"
    cooldown:
      default-days: 10
      dependency-type: "production"
```

## Non-Compliant Code Examples{% #non-compliant-code-examples %}

```yaml
version: 2
updates:
  # Issue 1: Insufficient default-days (3 < 7)
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "daily"
    cooldown:
      default-days: 3

  # Issue 2: Missing cooldown configuration entirely
  - package-ecosystem: "pip"
    directory: "/"
    schedule:
      interval: "weekly"

  # Issue 3: Cooldown exists but default-days is missing
  - package-ecosystem: "docker"
    directory: "/"
    schedule:
      interval: "monthly"
    cooldown: {}

  # Issue 4: Another insufficient default-days (0)
  - package-ecosystem: "cargo"
    directory: "/"
    schedule:
      interval: "daily"
    cooldown:
      default-days: 0
```
