---
title: Dependabot config fails with schedule field is required
description: The dependabot@2 task rejects an updates entry that has no schedule block; add a schedule to every entry.
id: SAIFTRBL0023
tags:
  - troubleshooting
  - pipelines
  - templates
---

# Dependabot config fails with schedule field is required

Add a `schedule` block to every entry under `updates` in `.github/dependabot.yml`. The `dependabot@2` task validates the file strictly and rejects entries without one.

---

## 🚨 Symptom

The Dependabot pipeline fails within seconds, before any updater work, with a configuration validation error:

```text
The 'schedule' field is required when 'multi-ecosystem-group' is not specified.
```

---

## 📌 Applies to

| Aspect | Value |
| ------ | ----- |
| **Component** | Azure DevOps `dependabot@2` task (Paklo), `.github/dependabot.yml` |
| **Observed on** | `dependabot@2` 2.68.7 |
| **Not for** | Entries that use `multi-ecosystem-group`, which take their schedule from the group |

### Prerequisites and safety

- Edit access to the repository's `.github/dependabot.yml`.
- The Azure DevOps pipeline schedule in `.azdo/dependabot-scan.yml` controls when the scan runs. The `schedule` block in `dependabot.yml` only has to pass validation, so match the pipeline's cron.

---

## ✅ Fix

1. Add a `schedule` block to each `updates` entry:

    ```yaml
    updates:
      - package-ecosystem: "npm"
        directory: "/"
        schedule:
          interval: 'cron'
          cronjob: '0 11 * * *' # Runs daily at 3 AM PST
    ```

2. Commit the change, then run the Dependabot pipeline.

---

## 🔬 Verify

The run gets past configuration validation and starts the updater. Other errors can still appear after this point, such as the registry error in [Dependabot registry not referenced by any update](dependabot-registry-not-referenced-by-any-update.md).

---

## 🧠 Cause

The Paklo-based `dependabot@2` task validates each `updates` entry against a strict schema and requires `schedule` unless the entry uses `multi-ecosystem-group`. The check lives in `packages/core/src/dependabot/config.ts` in [mburumaxwell/paklo](https://github.com/mburumaxwell/paklo). Repositories scaffolded before the template included `schedule` fail until you add it.

---

## 📚 Related

- [Pipelines reference: Dependabot](../reference/pipelines.md) - Template defaults
- [Paklo configuration schema](https://github.com/mburumaxwell/paklo/blob/main/packages/core/src/dependabot/config.ts)
