Skip to content

chore(deps): add a Dependabot config for security updates #5539

Not planned

Description

@dan-petty

Problem or Motivation

Renovate has opened no pull request since 2026-10-01, and #4905 (self-hosted Renovate in the cluster) is not done. The owner rule is to take a security fix at once. The owner decided on 2026-11-13 to turn on the Dependabot security updates until Renovate runs (#4905). The owner flips the repository settings (Dependabot alerts and Dependabot security updates). An agent cannot change a repository setting.

Without a config file, a Dependabot pull request gets the title Bump <package> from <old> to <new>. The Semantic PR title check refuses that title, because it has no Conventional Commit type and scope. Dependabot also adds its own labels (dependencies and a language label), which .github/labels.yml does not declare.

Proposed Solution & Architectural Design

Add .github/dependabot.yml (version 2) with one updates entry for each package ecosystem of the repository that has Dependabot security updates:

package-ecosystem Directory Manifest
uv / pyproject.toml, uv.lock
pip /src/devops_cli/tools_lock the pip-compile files *.in and *.txt
npm directories: the 3 folders of src/devops_cli/tools_lock/ with a package-lock.json (devcontainers-cli, openspec, style-dictionary) package.json, package-lock.json
github-actions directories: / and each folder of .github/actions/ .github/workflows/*.yml, action.yml

Each entry has:

  • open-pull-requests-limit: 0. This stops the version updates. The security updates have a separate, fixed limit of 10 open pull requests, which this option does not change.
  • commit-message.prefix: "fix(deps)", with no include: scope. Dependabot adds the colon after the closing parenthesis, so the pull request title is fix(deps): bump <package> .... scope/deps is in .github/labels.yml, so the Semantic PR title check accepts the scope. include: scope would add deps-dev, which is not a declared scope.
  • labels: ["scope/deps"], so Dependabot creates no undeclared label.
  • a schedule.interval (for example weekly), because the schema requires one.

The Dockerfiles, the devcontainer features, tf/ and the Helm values get no entry. The Dependabot documentation marks the security updates of docker, devcontainers, terraform, opentofu and helm as not supported, and the version updates stay off. Renovate keeps them (#4905).

Known limits:

  • The summary of a title has at most 60 characters. Dependabot adds in <directory> for an entry that is not at the root, so a security pull request of an npm folder can have a longer title. Shorten the title of such a pull request before the merge. The check runs again on an edit of the title.
  • A workflow run of a Dependabot pull request gets no Actions value of the repository settings. If a required check needs one, record the failure on this issue.

When Renovate runs (#4905), remove .github/dependabot.yml, and the owner turns off the Dependabot security updates, so that two bots do not open the same fix.

Target Subsystem

Security & Vulnerability Scanners

Existing Tool Considered

Dependabot security updates (a GitHub feature) need only the repository settings and this file. Renovate (#4893, #4905) replaces them when it runs. No new code.

Cost: about 40 lines (the file and one test), about 30k tokens, about 1 hour.

Acceptance Criteria

  • .github/dependabot.yml has an entry for uv, pip, npm and github-actions with the directories above.
  • A test (next to tests/core/test_renovate_config.py) loads the file, and asserts for each entry open-pull-requests-limit 0, the prefix fix(deps), no include, and the label scope/deps.
  • The same test asserts that each directory in the file exists, and that deps is a scope of .github/workflows/pr-title.yml.
  • uv run devops ci --check --only lint,format passes.
  • After the owner turns on the settings, the first Dependabot security pull request has a fix(deps): ... title and passes the Semantic PR title check, or this issue records why not.

Related: #4905, #4893.

Alternatives check of 2026-11-17: not-applicable.
Class: chore, no search.
Tool: none found.

Proposed design

Problem statement

Dependabot security updates would open pull requests with the default title Bump <package> from <old> to <new>, which the Semantic PR title check refuses because it has no Conventional Commit type and scope, and with the default dependencies and ecosystem labels, which .github/labels.yml does not declare. Add .github/dependabot.yml so each security pull request gets a fix(deps): ... title and the scope/deps label. The config is a stopgap until Renovate runs (#4905); the owner turns on Dependabot alerts and Dependabot security updates in a separate issue.

Acceptance criteria

Requirement: Dependabot config is valid YAML

The repository SHALL add .github/dependabot.yml as a valid YAML document with version: 2 and an updates list.

Scenario: The YAML hook accepts the config

  • WHEN uv run pre-commit run check-yaml --files .github/dependabot.yml runs
  • THEN the hook exits 0 and prints Passed for .github/dependabot.yml.

Requirement: Dependabot declares the supported entries

The config SHALL declare one updates entry for uv at /, pip at /src/devops_cli/tools_lock, npm at src/devops_cli/tools_lock/devcontainers-cli, src/devops_cli/tools_lock/openspec and src/devops_cli/tools_lock/style-dictionary, and github-actions at / and each .github/actions/* folder that holds an action.yml.

Scenario: Dependabot reads the ecosystem entries

  • WHEN the Dependabot log of the first run after the merge is read
  • THEN it reports no configuration error for the uv, pip, npm or github-actions entries.

Requirement: Dependabot accepts the security-update settings

Each updates entry SHALL set open-pull-requests-limit to 0, commit-message.prefix to fix(deps) with no commit-message.include, labels to scope/deps, and a schedule.interval.

Scenario: Dependabot reads the entry settings

  • WHEN the Dependabot log of the first run after the merge is read
  • THEN it reports no configuration error for the open-pull-requests-limit, commit-message, labels or schedule settings.

Requirement: No entry for an unsupported ecosystem

The config SHALL declare no updates entry for docker, devcontainers, terraform, opentofu or helm.

Scenario: Dependabot reads the ecosystem list

  • WHEN the Dependabot log of the first run after the merge is read
  • THEN it reports no update job for docker, devcontainers, terraform, opentofu or helm.

Existing Tool Considered

The alternatives check of 2026-11-17 records not-applicable and names no tool. The open, maintained tool that covers the need is Renovate, which ADR 0027 chose (docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:26, docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:36): it covers every pin class and runs the project's commands, but it does not run yet (#4905) and runs under an AGPL-3.0 owner exception. This change adds no code; it adds .github/dependabot.yml for Dependabot security updates, the GitHub-hosted stopgap, which lacks security updates for docker, devcontainers, terraform, opentofu and helm (.github/renovate/base.json:70, .github/renovate/base.json:75, .github/renovate/base.json:85, .github/renovate/base.json:90). Cost: about 30 lines of YAML, no code, about 5k tokens, about 15 minutes.

Key questions

  • Should the repository use Dependabot security updates until Renovate runs?: Yes. The owner decided on 2026-11-13 to turn on Dependabot alerts and Dependabot security updates until Renovate runs (feat(k8s): run self-hosted Renovate as a CronJob in devops #4905). ADR 0027 makes Renovate the dependency updater, and AGENTS.md leaves repository settings to a person, so the owner turns the setting on in a separate issue. (best practice) [sources: docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:13, docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:26, AGENTS.md:21]
  • Does the repository declare the scope/deps label?: Yes. .github/labels.yml declares scope/deps with the description 'Dependency pins, upgrades and the supply chain'. [sources: .github/labels.yml:80]
  • Does the Semantic PR title check use the deps scope?: Yes. .github/workflows/pr-title.yml lists deps in the scopes input, so a title with fix(deps) has a type and a declared scope. [sources: .github/workflows/pr-title.yml:56, .github/labels.yml:80]
  • Which commit message settings avoid an undeclared scope?: Set commit-message.prefix to fix(deps) and omit include: scope. Dependabot adds the colon, so the title is fix(deps): Bump .... prefix-development defaults to prefix, so a development dependency also gets fix(deps). include: scope adds deps-dev for development dependencies, which .github/labels.yml does not declare. (best practice) [sources: .github/labels.yml:80, .github/workflows/pr-title.yml:56]
    • Chosen: prefix fix(deps), no include. The title is fix(deps): Bump ...; prefix-development defaults to prefix, so development dependencies also get fix(deps), and deps is a declared scope.
    • Rejected: prefix fix with include scope. include: scope adds deps-dev for development dependencies, which .github/labels.yml does not declare.
    • Rejected: prefix chore(deps). A security update is a fix, and chore is not the type of a security fix.
  • How do we keep version updates off?: Set open-pull-requests-limit to 0 in each entry. This turns version update pull requests off. The security update limit is separate and stays at 10. (best practice) [sources: docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:32, docs/SDLC.md:334]
    • Chosen: open-pull-requests-limit 0. It turns version updates off; the security updates have a separate limit of 10, which this option does not change.
    • Rejected: no open-pull-requests-limit. Dependabot opens version update pull requests.
    • Rejected: open-pull-requests-limit 1. It still opens one version update pull request.
  • Which package ecosystems and directories?: Use uv at /, pip at /src/devops_cli/tools_lock for the <tool>.in and <tool>.txt pip-compile files, npm at src/devops_cli/tools_lock/devcontainers-cli, src/devops_cli/tools_lock/openspec and src/devops_cli/tools_lock/style-dictionary, and github-actions at / and each .github/actions/* folder that holds an action.yml. Leave docker, devcontainers, terraform, opentofu and helm to Renovate. (best practice) [sources: pyproject.toml, uv.lock, src/devops_cli/tools_lock/bandit.txt, src/devops_cli/tools_lock/devcontainers-cli/package-lock.json, src/devops_cli/tools_lock/openspec/package-lock.json, src/devops_cli/tools_lock/style-dictionary/package-lock.json, .github/actions/setup-toolchain/action.yml, .github/actions/devcontainer-image/action.yml, .github/actions/devcontainer-smoke/action.yml, .github/renovate.json:21]
    • Chosen: supported ecosystems only. The repository has these manifests; the other pin classes are Renovate's.
    • Rejected: all ecosystems. Dependabot has no manager for docker, devcontainers, terraform, opentofu or helm (ADR 0027).
    • Rejected: wait for Renovate. Renovate opened no pull request since 2026-10-01, and feat(k8s): run self-hosted Renovate as a CronJob in devops #4905 is not done.
  • Which schedule interval?: Use weekly. The schema requires a schedule.interval. The schedule applies to version updates, which open-pull-requests-limit 0 turns off, and Dependabot security updates run when an advisory is published, not on this schedule. (best practice) [sources: docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:32]
    • Chosen: weekly. The schema requires an interval; version updates are off, and security updates run when an advisory is published, not on this schedule.
    • Rejected: daily. It adds no benefit when version updates are off.
    • Rejected: monthly. It delays nothing that security updates need; weekly is the common default.
  • Should the config set labels to scope/deps?: Yes. The labels option adds the declared scope/deps label and replaces Dependabot's default dependencies and ecosystem labels, which .github/labels.yml does not declare. (best practice) [sources: .github/labels.yml:80, .github/labels.yml:1]
    • Chosen: labels scope/deps. It adds the declared label and replaces Dependabot's default labels.
    • Rejected: no labels option. Dependabot adds dependencies and an ecosystem label, which .github/labels.yml does not declare.
  • Which ecosystems do Dependabot security updates not support?: Dependabot has no manager for the docker, devcontainers, terraform, opentofu and helm pin classes, which ADR 0027 records as the reason it rejects Dependabot version updates; the Renovate preset covers those classes, so the config gives them no entry and Renovate keeps them (feat(k8s): run self-hosted Renovate as a CronJob in devops #4905). [sources: docs/adr/0027-dependency-updates-come-from-self-hosted-renovate.md:32, docs/SDLC.md:334, .github/renovate/base.json:70, .github/renovate/base.json:75, .github/renovate/base.json:85, .github/renovate/base.json:90]
  • What happens when a non-root entry makes the title longer than 60 characters?: Dependabot adds in <directory> to the title of an entry that is not at the root, so an npm security pull request can have a summary longer than the 60 characters of the Semantic PR title check. The person shortens the title before the merge; the check runs again on an edit of the title. The deferred owner issue records the shorter title or why it was not needed. (best practice) [sources: .github/workflows/pr-title.yml:93, docs/SDLC.md:334]
    • Chosen: shorten the title before the merge. The check runs again on an edit of the title, and the deferred owner issue records the shorter title.
    • Rejected: drop the non-root npm entries. It loses the security updates of the three npm locks.
    • Rejected: leave the long title. The Semantic PR title check refuses a summary over 60 characters.
  • Does each .github/actions/* folder need its own github-actions entry?: Yes. Each folder holds an action.yml that pins uses: actions, so each action folder gets its own entry; the root entry covers .github/workflows. (best practice) [sources: .github/actions/setup-toolchain/action.yml:38, .github/actions/devcontainer-image/action.yml:38, .github/actions/devcontainer-smoke/action.yml:21, .github/workflows/pr-title.yml:40]
    • Chosen: one entry for each action folder. Each action.yml pins uses: actions, so it needs an entry that reads it.
    • Rejected: root entry only. The root entry covers .github/workflows; the action pins would stay unupdated.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/chore
    scope/deps
    status/new
    value/medium
    effort/low
    on Nov 13, 2026
  2. dan-petty commented on Nov 13, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 13, 2026
  4. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable (chore item; no search).

  5. added
    status/ready
    and removed
    status/new
    on Nov 18, 2026
  6. devops-cli-service commented on Nov 18, 2026

    @devops-cli-service
    Contributor

    Status set to Ready at 86358b6 (see proposed design in issue body).

    Moved to new items: #6277, #6278.

  7. dan-petty commented on Nov 26, 2026

    @dan-petty
    OwnerAuthor

    Closed: the Dependabot stopgap is no longer needed.

    This item covered the time until Renovate ran (#4905). Renovate runs now, from dan-petty/homelab, and opens pull requests here. The repository baseline in dan-petty/infra keeps Dependabot security updates off. The src/devops_cli/tools_lock folders that the config named are deleted.

  8. removed
    status/ready
    on Nov 26, 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

    effort/lowpriority/p2-mediumscope/depssource/agenttype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions