GeezerVison is showing github.com — fix(grok-cli): force bn.js ^4.12.3 past the ethjs-unit/number-to-bn exact pins (#15449) by developing-today-fleet[bot] · Pull Request #15477 · developing-today/code
Conversation
Fixes the Dependabot security_update_not_possible failure tracked in #15449 (Dependabot Updates run 45778173483).
Root cause
In pkgs/grok-cli/package-lock.json on main:
- top-level
bn.js is already 5.2.5 and elliptic's nested copy is 4.12.5 (both fixed);
- but
ethjs-unit and number-to-bn each declare bn.js as the exact pin 4.11.6 (vulnerable: < 4.12.3), so Dependabot computed the latest installable version as 4.11.6 and aborted with downgrades_dependencies / security_update_not_possible.
Change (2 files, minimal)
pkgs/grok-cli/package.json: add npm overrides forcing bn.js: ^4.12.3 under ethjs-unit and number-to-bn (the 4.12.x line is the upstream security-fix line for the 4.x branch). default.nix already copies repo overrides into the Nix build's package.json, so the build sees the same overrides.
pkgs/grok-cli/package-lock.json: surgical edit of exactly the two nested entries — node_modules/ethjs-unit/node_modules/bn.js and node_modules/number-to-bn/node_modules/bn.js now resolve to bn.js 4.12.5 with the genuine registry integrity hash (identical to the entry already in this lock for elliptic's bn.js 4.12.5). Raw diff: 16 lines; all 1252 package entries otherwise untouched. A full npm install --package-lock-only regeneration was rejected: this sandbox's npm re-resolves ~115 unrelated entries (the committed lock was generated with the repo's documented recipe/toolchain), which is not a small fix.
After this change every bn.js copy in the lock is fixed: 5.2.5, 4.12.5, 4.12.5, 4.12.5 — none in the affected ranges (< 4.12.3, >= 5.0.0 < 5.2.3).
Known follow-on
pkgs/grok-cli/default.nix pins npmDepsHash; any lock change invalidates it. If CI builds grok-cli and reports the hash mismatch, the correct hash from that error will be pushed as a fix-forward commit on this branch (per the repo's fix-value-errors rule) before merge.
Lane: direct no-queue lane Q (queue broker/laptop down, #15131; Drew's 2026-11-26 no-queue order). Authored via the Git API contents route.
{
"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-26T08:25:41Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 26, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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:
6575e5de-4d6a-4b80-8af9-53de14f3d0ff
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:
- 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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Lane Q update: branch rebased onto current main (953fc76) after PR #15406 (grok-cli @OpenTui bump) merged mid-lane and regenerated this lockfile. Verified via compare API: the PR diff is now exactly +6/−0 in package.json (the two bn.js overrides) and +6/−6 in package-lock.json (the two nested bn.js entries 4.11.6 → 4.12.5) — no other entries touched. The bn.js pins from ethjs-unit/number-to-bn are unchanged by #15406, so the root-cause fix stands as described. Merging now; verification is on main CI per repo convention (CI runs on main only), including any npmDepsHash fix-forward if the grok-cli Nix build reports a mismatch.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|