Skip to content

Dependabot npm PRs install with the npm version CI runs #218

Open

Description

@ooloth

Current state

A Dependabot security PR can arrive with a lockfile that CI refuses to install, so every check fails and the lockfile has to be regenerated by hand before the PR can be tested. On #217, npm ci under npm 11.6.2 (bundled with the Node 25.1.0 in .nvmrc) failed with "Missing: agent-base@9.0.0 from lock file" and 11 similar lines, while npm 12.2.1 installed the same lockfile cleanly. The repo does not declare which npm version it uses, so Dependabot, CI and local installs can each resolve the tree with a different one.

Ideal state

  • Local installs, CI and Dependabot all resolve the lockfile with the same npm version
  • A lockfile Dependabot writes installs with npm ci in CI without being regenerated by hand

Decisions

Constraints

No recorded decisions found (no docs/decisions/, DECISIONS.md or ADR files in the repo).

Open

No open decisions.

Starting points

  • .github/workflows/ci.yml: installs Node from .nvmrc and uses its bundled npm
  • .github/dependabot.yml: the npm update and security groups
  • package.json: declares no npm version today

Activity

  1. ooloth commented on Nov 7, 2026

    @ooloth
    OwnerAuthor

    This happened again on #219, a group update. Dependabot's lockfile dropped the same 12 nested puppeteer-core entries (agent-base@9.0.0 and the rest), so npm ci under npm 11.6.2 failed in every job. Regenerating with npm 11.6.2 (npx npm@11.6.2 install under Node 25.1.0) restored them in 276ca8b. The npm that fnm installs with Node 25.1.0 locally is 11.12.1, which accepts the broken lockfile, so local installs don't match CI either.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions