Skip to content

SAIFTRBL0023 ยท permalink

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:

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:

    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.


๐Ÿง  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. Repositories scaffolded before the template included schedule fail until you add it.