Skip to content

dependabot.yml is invalid — unquoted schedule.time discards the whole config, including the automerge fix #288

Closed

Description

@scttfrdmn

What

.github/dependabot.yml has time: 09:00 unquoted in all six ecosystem entries. Dependabot's YAML 1.1 parser reads that as a sexagesimal integer, its schema requires a string, and it rejects the file:

Dependabot encountered the following error when parsing your `.github/dependabot.yml`:

The property '#/updates/0/schedule/time' of type integer did not match the following type: string
The property '#/updates/1/schedule/time' of type integer did not match the following type: string
... (once per ecosystem entry, all six)

An invalid config is not partially applied — it is ignored. So every labels:, groups:, reviewers: and ignore: block in the file was dead, and Dependabot ran on its defaults instead.

Present since 2025-10-15 (d4ff903), where the key was introduced unquoted. It was never quoted at any point in the file's history — checked, not assumed.

Why it stayed hidden for nine months

It surfaces as a failing .github/dependabot.yml check on every pull request, which reads like "a dependabot job failed" rather than "your configuration is invalid." And the file has a version: 2 key and six well-formed-looking entries, so nothing about reading it suggests it is being thrown away. It is visible right now on #210.

The part that makes this worth an issue rather than a one-line commit

This masked the fix for a previously-diagnosed defect. The automerge label was missing from the repository; Dependabot drops labels it cannot find without reporting it; and every approve and merge step in .github/workflows/dependabot-automerge.yml is gated on contains(labels.*.name, 'automerge'). 46 PRs were opened and 0 merged. That was diagnosed and fixed — the label is now in .github/labels.yml and on the repository, and TestDependabotLabelsAreDefined guards it.

And it still did not work, because labels: was inside a file being discarded wholesale. Verified on the currently-open PRs:

PR labels
#210 dependencies, java
#249 dependencies, go
#254 dependencies, github-actions
#258 dependencies, github-actions

No automerge on any of them. Two independent causes for one symptom, and fixing the visible one left the other invisible.

Fix

Quote all six: time: "09:00".

The test, and why it checks the text

Guarded by TestDependabotScheduleTimesAreQuoted in internal/config/labels_test.go, alongside the existing TestDependabotLabelsAreDefined.

It asserts the file text is quoted rather than asserting the decoded Go type, which is the obvious design and does not work. Probed rather than assumed: gopkg.in/yaml.v2 and gopkg.in/yaml.v3 both decode 09:00, 9:00, 10:30 and 05:00 as Go string, because Go's YAML 1.2 core schema has no sexagesimal integer type while Dependabot's YAML 1.1 parser does. So a decode-based assertion passes on exactly the input that breaks the file — the first version of this test did, and mutation-checking it against the unquoted form is what caught that.

The tradeoff: this cannot tell "9am" from "09:00", since both are quoted strings and only Dependabot's schema knows the difference. The failing check on the PR remains the authority on validity; the test exists to stop the known regression.

Mutation-verified in three directions:

mutation result
unquote one time (the original bug) FAIL — "time: 09:00, which is not a quoted scalar"
single-quote it (valid YAML string) pass, as intended
rename the key to tyme: FAIL — the scan-found-nothing guard fires

Follow-on, once this lands

Dependabot has to re-evaluate the config before labels: takes effect, so existing open PRs will not retroactively gain automerge. Worth confirming on the next batch that the label arrives, since that is the actual end of the 46-PR problem and it has now appeared fixed twice without being fixed.

Note docs-platform/package.json's three vite alerts are not fixed by this: security updates need a lockfile and none is committed (#214). That ceiling is already documented in the config.

Activity

  1. added
    type: bug
    type: ci-cd
    priority: high
    effort: xs
    area: ci-cd
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: ci-cdeffort: xspriority: hightype: bugtype: ci-cd

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions