Skip to content

fix(deps): override glob to 13.0.7 in .opencode (unblocks Dependabot security update) - #17271

Merged
developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/17263-glob-override
Nov 30, 2026
Merged

developing-today-fleet[bot] merged 1 commit into
mainfrom
xaltha/17263-glob-override

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17263

Root cause (from run 46459060664's log)

Dependabot's security update for glob in /.opencode errored: the tree's hoisted glob is 13.0.5 (affected: >= 9.0.0 < 13.0.7), exact-pinned through @opencode/[email protected] under both memory plugins. A patched version (13.0.7) exists, but Dependabot's only update path would downgrade @knikolov/opencode-plugin-simple-memory 2.0.0 → 1.1.1, so the job fails instead. Dependabot's own log names the resolution: "Add an override/resolution to pin glob to a non-vulnerable version compatible with your dependencies."

Fix

  • .opencode/package.json: add a range-scoped npm override — "glob@^13.0.0": "13.0.7". The scope matters: rimraf's nested glob is already 10.5.0 (the patched 10.x line) and is deliberately left untouched.
  • .opencode/package-lock.json: regenerated. Field-by-field diff against the old lock is exactly the glob restructure and nothing else: hoisted [email protected] removed; [email protected] nested under @npmcli/map-workspaces, @npmcli/package-json, @opencode/util, and cacache. (The local npm 10 strips the libc fields npm 12 writes on 18 platform packages; those were restored field-for-field so this PR carries no unrelated churn.)

Verification

  • Local (npm 10.9.4): npm install --package-lock-only resolves every glob ^13 instance to 13.0.7; rimraf's stays 10.5.0.
  • Remote dispatch on this branch re-checks the resolved glob versions against the advisory ranges from the run log (< 13.0.7 for 13.x, >= 10.2.0 < 10.5.0 for 10.x) — link in the PR comments.
  • Wake: the next Dependabot Updates run for /.opencode should complete the glob security update (or find nothing to do); if it errors again, the new run log is the next evidence.
{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T16:24:58Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch/workspace/github-work/code-17263",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch/workspace/github-work/code-17263",
      "repo": "developing-today/code",
      "branch": "xaltha/17263-glob-override",
      "sha": "8850d490fdd0a7217d126fd265bb44366c2bfb67"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6f136d03-9b77-4a4c-97f9-040cc816d0eb

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet
developing-today-fleet Bot merged commit acc6289 into main Nov 30, 2026
2 checks passed
@developing-today-fleet
developing-today-fleet Bot deleted the xaltha/17263-glob-override branch November 30, 2026 16:28
developing-today-fleet Bot pushed a commit that referenced this pull request Nov 30, 2026
Follow-on to #17263 / PR #17271: the first Dependabot run on the merged
scoped override still failed (run 46462298184, #17285) with
security_update_not_possible for glob in /.opencode — latest resolvable
10.5.0, lowest non-vulnerable 13.0.7. The remaining in-range instance
is [email protected]'s nested glob (requested ^10.3.7, resolved 10.5.0;
GHSA-3g3m-2fjr-6pw4 covers >= 9.0.0, < 13.0.7). Scope the override to
that edge as well; lockfile regen follows.

Refs #17285
developing-today-fleet Bot pushed a commit that referenced this pull request Nov 30, 2026
npm-regenerated (npm 10.9.4) with both scoped overrides in place:
the four per-consumer nested glob 13.0.7 copies from PR #17271 dedupe
to a single hoisted node_modules/glob 13.0.7, rimraf's nested glob
10.5.0 and its exclusive CLI dep tree (foreground-child, jackspeak,
package-json-from-dist, @isaacs/cliui, string-width/wrap-ansi chain)
are removed, and no other package entry changes. The libc fields
npm 10 strips from 18 platform packages were restored field-for-field
from main, so the diff is the glob restructure only. Verified: every
glob instance in the lockfile is now 13.0.7 (GHSA-3g3m-2fjr-6pw4
patched floor), and a second regen is a no-op.

Closes #17285
developing-today-fleet Bot pushed a commit that referenced this pull request Nov 30, 2026
…d copies

13 open Dependabot alerts on this manifest trace to two stale copies
nested under @cloudflare/vitest-pool-workers (its bundled miniflare
exact-pins them): undici 7.29.0 (11 alerts, patched floor 7.30.1) and
sharp 0.35.2 (2 alerts, patched floor 0.35.5). The hoisted copies are
already patched (undici 7.30.2, sharp 0.35.5).

Add exact-pin npm overrides (undici 7.30.2, sharp 0.35.5 — the same
versions the tree already hoists) and regenerate the lockfile with
npm 10.9.4: the nested stale copies and their exclusive @img platform
packages are removed, the tree dedupes onto the hoisted patched
copies, and no other package entry changes (libc fields npm 10
strips were restored in npm 12's field order, as in PR #17271).

Closes #17298
@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Verification (lane 0900-AN, at head 8850d49):

  • Resolution proof: npm install --package-lock-only --ignore-scripts in .opencode with the committed overrides: {"glob@^13.0.0": "13.0.7"} resolves every glob ^13 consumer to 13.0.7; rimraf's nested glob stays 10.5.0 (the patched 10.x line, untouched by the range-scoped override).
  • Lock assertion over the committed package-lock.json (per-major-line advisory floors: 13.x ≥13.0.7, 11.x ≥11.1.0, 10.x ≥10.5.0, 14.x >14.0.1): all five node_modules/glob instances pass — 13.0.7 ×4 (@npmcli/map-workspaces, @npmcli/package-json, @opencode/util, cacache), 10.5.0 ×1 (rimraf).
  • Diff discipline: field-by-field lock diff vs main is the glob restructure only (hoisted 13.0.5 removed); the npm-12 libc fields local npm strips were restored in position, so no unrelated churn.
  • Remote re-runs of the assertion via fleet dispatch (runs 46463717985, 46464794142) both died in the runner's checkout fetch phase before the command executed — environment flake, recorded here; the assertion above was run against the committed lockfile artifact itself.
  • Wake/confirmation: the next scheduled Dependabot Updates run for /.opencode should no longer error on the glob advisory (run 46459060664 was the failure this fixes).

Merging on this verification (CI is not a merge gate).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main CI failure: Dependabot Updates (run 46459060664)

1 participant