Skip to content

fix: clear the minimatch and esbuild security alerts with scoped overrides - #5116

Open
NoopDog wants to merge 2 commits into
mainfrom
noopdog/5114-dev-dep-overrides
Open

NoopDog wants to merge 2 commits into
mainfrom
noopdog/5114-dev-dep-overrides

Conversation

@NoopDog

@NoopDog NoopDog commented Nov 26, 2026

Copy link
Copy Markdown
Collaborator

Part of #5114.

What changed

  • Ran npm audit fix (without --force) in the root. typescript-eslint and its @typescript-eslint/* packages move from 8.72.1 to 8.74.0 in package-lock.json, and typescript-estree now resolves minimatch 11.0.9.
  • Root package.json: the existing eslint-plugin-sonarjs@^3 override raises minimatch from ^10.2.3 to ^11.0.1. The hoisted minimatch 10.2.6 is gone.
  • Root and files/ package.json: new override "@digitak/esrun": { "esbuild": "^0.25.0" }. esbuild resolves to 0.25.12 in both lockfiles. The key is unversioned because @digitak/esrun@^3 fails with EOVERRIDE, since esrun is a direct dependency.

Why

Three Dependabot alerts were open against development dependencies, with no Dependabot PR to fix them:

data-browser isn't exposed to either. minimatch only runs in lint tooling, and esrun uses esbuild's context() and rebuild(), not the serve() dev server the advisory concerns.

Assumptions I made

  • esbuild 0.25.12 is outside esrun's declared ^0.17.4. build-anvil-db, which runs through esrun in the anvil-catalog Playwright job, writes catalog JSON identical to main's, and a root npx esrun run works. The root scripts get-cellxgene-projects-hca, check-system-status:anvil-cmg and refresh-diagnosis-terms:anvil-cmg aren't run in CI. They bundle without errors on 0.25.12 but weren't run end to end, because they call external services.
  • eslint-plugin-sonarjs 3.0.7 pins minimatch 10.1.2, and the override gives it 11.0.9. It uses only new Minimatch(pattern).match(...), which v11 keeps, and lint output is byte-identical to main's.
  • The typescript-eslint update exists only in the lockfile. package.json still allows ^8.50.0, so a regenerated lockfile could in principle resolve 8.72.x again.
  • ^0.25.0 keeps esbuild within 0.25.x. An esbuild fix published only in 0.26 or later would need these overrides raised.

How to verify

  1. Run npm audit in the root and in files/. Neither GHSA-g3hv-75wg-m249 nor GHSA-67mh-4wv8-2f99 appears. The root still lists csv-parse until fix: update csv-parse to 7.0.3 to clear its security alert #5115 merges.
  2. Run npm ls minimatch esbuild in the root, and npm ls esbuild in files/. minimatch is 11.0.9 under @typescript-eslint/typescript-estree and eslint-plugin-sonarjs, and esbuild is 0.25.12 under @digitak/esrun in both.
  3. Run npm run lint on main and on this branch and diff the output. It's identical. Then run npx tsc --noEmit in the root and in files/, and npx jest. All pass.
  4. Run npm run build-anvil-db in files/ on main and on this branch, and compare the sha256 of files/anvil-catalog/out/*.json. They match, and git status stays clean.
  5. After the merge, open Security, then Dependabot. Alerts Fixed broken project URL after load of app with query param state. #490, Add Specimen Type Facet #198 and Additional facets #199 show as fixed.

Definition of done (from #5114):

🤖 Generated with Claude Code

NoopDog and others added 2 commits November 26, 2026 01:14
… clear its alert (#5114)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: cc-claude-tools <cc-claude-tools@clevercanary.com>
…5114)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: cc-claude-tools <cc-claude-tools@clevercanary.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the development-tool dependency updates targeting the minimatch and esbuild security alerts.

No open issues 🎉

1 file not reviewed
  • files/package-lock.json: Generated file
What changed in this PR

Addresses #5114 by updating development-tool dependencies to resolve the targeted minimatch and esbuild security alerts without changing application code.

Changes:

  • Adds scoped @digitak/esrun overrides in the root and files/, resolving esbuild to 0.25.12.
  • Raises the root SonarJS override to minimatch ^11.0.1, resolving to 11.0.9.
  • Updates typescript-eslint and its related packages to 8.74.0 in the root lockfile, bringing its minimatch dependency to 11.0.9.
File Description
package.json Adds the esrun override and raises the SonarJS minimatch override.
package-lock.json Records updated esbuild, minimatch, and TypeScript ESLint dependencies.
files/​package.json Adds the scoped esrun override for catalog tooling.
files/​package-lock.json Locks esbuild and its platform packages to 0.25.12.

Review effort: Balanced

@frano-m frano-m left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving. Both overrides are scoped and resolve as intended (esbuild 0.25.12 under @digitak/esrun in both folders, minimatch 11.0.9 under eslint-plugin-sonarjs). npm audit no longer lists either advisory, lint output matches main, and build-anvil-db output is identical. It merges cleanly with #5115 in either order. Two optional points:

  • Optional: the description says check-system-status:anvil-cmg isn't run in CI, but run-playwright-tests-anvil-cmg.yml runs it twice through esrun, and both runs passed on this head with esbuild 0.25.12. Since the description becomes the squash body, consider listing it as covered and leaving only get-cellxgene-projects-hca and refresh-diagnosis-terms:anvil-cmg as not run end to end.
  • Since the PR says "Part of #5114" rather than closing it, #5114 will need closing by hand once alerts #490, #198 and #199 show as fixed.

This branch has not been deployed

No deployments
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.

3 participants