Skip to content

build(deps): lift cross-spawn past GHSA-ghv9-86vm-4v8m - #989

Draft
polewskm wants to merge 3 commits into
mainfrom
worktree-cross-spawn-security-fix
Draft

polewskm wants to merge 3 commits into
mainfrom
worktree-cross-spawn-security-fix

Conversation

@polewskm

@polewskm polewskm commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Lifts eslint's transitive cross-spawn 7.0.6 to 7.1.0, clear of the critical GHSA-ghv9-86vm-4v8m (Dependabot alert #61), with the scoped override 'cross-spawn@>=7.0.0 <7.1.0': '^7.1.0' in frontend/pnpm-workspace.yaml; pnpm install regenerated the lockfile, and pnpm why cross-spawn -r shows only 7.1.0.
7.1.0 is younger than the three-day minimumReleaseAge, so a commented, version-scoped minimumReleaseAgeExclude: [[email protected]] records the cooldown exception ADR-1152 asks for; a follow-up removes it once 7.1.0 has aged.
Dependabot's own update failed not on the cooldown, which it bypasses for security updates, but because it asked for [email protected], outside eslint's ^7.0.6, so pnpm kept 7.0.6; the override comment now says so.
The ### Security catalog entry for lifted transitive dependencies names cross-spawn, the advisory and alert #61.

@polewskm
polewskm deployed to code-review December 1, 2026 06:27 — with GitHub Actions Active

@ncode-review ncode-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 NCode Review at f27fab1: 1 new finding on the changed lines.

# .github/dependabot.yml, and it must never be shorter: Dependabot enforces its cooldown on every version already in the
# lockfile, so a younger one would fail its updates until it aged (ADR-1152). Security updates bypass both gates.
minimumReleaseAge: 4320
# Exception (ADR-1152): cross-spawn 7.1.0, the first release clear of the critical GHSA-ghv9-86vm-4v8m, is locked before

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Nit: No issue tracks removing the cooldown exception F1 · hygiene, rule-check

The comment on the new minimumReleaseAgeExclude entry says it "comes out once 7.1.0 is three days old", and the PR description promises a follow-up, but neither links a GitHub issue, and AGENTS.md / ADR-1306 say pending work belongs in issues, not in comments or plan steps.

Consequence: Nothing reminds anyone to remove the exclusion, so it can stay long after 7.1.0 has aged and leave a stale exception to the cooldown in the workspace config.

Fix: Open a frontend supply-chain issue for removing [email protected] from minimumReleaseAgeExclude and link it from this comment. Or drop the exclusion before merging: 7.1.0 was published 2026-11-28T18:48Z, so it is three days old from 2026-12-01T18:48Z.

Evidence

frontend/pnpm-workspace.yaml lines 41-45: the exception comment ends 'the exclusion comes out once 7.1.0 is three days old' with no issue reference; AGENTS.md 'Known pending work'; ADR-1306 and project-template ADR-0011 ('done is binary and global').

Confidence 0.35.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Autopilot: not changed. ADR-1306 decision 2 has the workflow file follow-ups: this plan's ## Follow-ups lists "Remove the cross-spawn minimumReleaseAge exclusion after 2026-12-04", and /ship-plan files it as a follow-up issue when this pull request lands (follow-ups: issues in AGENTS.md's Landing section), so the removal is tracked without a link in the YAML comment. Dropping the exclusion before merge would make pnpm install fail with ERR_PNPM_NO_MATURE_MATCHING_VERSION until 2026-12-01T18:48Z.

@ncode-review-approver ncode-review-approver Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at f27fab1: no blocker or should-fix finding remains.

@ncode-review

ncode-review Bot commented Dec 1, 2026

Copy link
Copy Markdown

🤖 Review complete

Verdict: 💬 Comment — This PR adds a scoped pnpm override that moves eslint's transitive cross-spawn from 7.0.6 to 7.1.0, which fixes the critical GHSA-ghv9-86vm-4v8m. It also adds a cooldown exclusion limited to 7.1.0, explains in the override comment why Dependabot couldn't make the update itself, and records the fix in the changelog. The change is small and low-risk, and it follows the repository's existing selector pattern rather than relying on workarounds. The one open point is that nothing tracks removing the temporary cooldown exclusion.

Approval: Approved — no blocker or should-fix finding remains.

3 reviewers run — 1 finding (run details)

Reviewer Model Findings Top
synthesis opus-5-5 1 🟡
conventions sonnet-5-5 0 🟢
hygiene haiku-5-5 1 🟡
rule-check sonnet-5-5 1 🟡

Skipped: api-compat, architecture, completeness, correctness, data-model, infrastructure, intent, performance, security, tests

Findings
  • 🟡 F1 frontend/pnpm-workspace.yaml:41: No issue tracks removing the cooldown exception

Trial: findings are posted as review threads and in the check run. $0.45 on Amazon Bedrock, 40s, at f27fab1. (how to interact)

@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #989       +/-   ##
===========================================
+ Coverage   96.22%   99.23%    +3.01%     
===========================================
  Files        2437      182     -2255     
  Lines      114032     5224   -108808     
  Branches      196        0      -196     
===========================================
- Hits       109724     5184   -104540     
+ Misses       4308       40     -4268     
Flag Coverage Δ
dotnet ?
frontend 99.23% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@polewskm

polewskm commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Autopilot: notice: the merge recommendation for this pull request at f27fab1 is held back because the default branch is broken. Its newest commit, b426807, has a failed Actions run:

That run is Dependabot's failed security update for alert #61, which this pull request fixes by hand. Otherwise this head is ready to merge as far as this run can tell: NCode Review approved it, its one finding (F1, a nit) was answered with "not changed", and no round of fixes was needed. The run recommends the merge once every run on the default branch's newest commit has passed.

Thread still unresolved, for the maintainer to resolve before the merge: #989 (comment)

@polewskm

polewskm commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Autopilot: this pull request is ready to merge at f27fab1 as far as this run can tell.

  • Rounds: none. No item needed a fix, so nothing was pushed after the pull request opened.
  • NCode Review reviewed f27fab1 and approved it. Its one finding, F1 (a nit), was answered with "not changed": under ADR-1306 decision 2, /ship-plan files the plan's follow-up, removing the [email protected] cooldown exclusion, as a follow-up issue once this lands.
  • Codecov's coverage report is informational and needs no reply.
  • The earlier hold-back is lifted: every Actions run on the default branch's newest commit, a422020, has passed. build: update project-template to v0.156.0 #988 merged without conflicting with this branch, and the ruleset doesn't require the branch to be up to date.
  • Nothing is put to the maintainer.

Thread still unresolved, for the maintainer to resolve before the merge: #989 (comment)

This branch was successfully deployed

1 active deployment
code-review — f27fab1e Deployed Dec 1, 2026 by polewskm via review #2403
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.

1 participant