Repository navigation
Conversation
There was a problem hiding this comment.
🟢 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/esrunoverrides in the root andfiles/, resolvingesbuildto 0.25.12. - Raises the root SonarJS override to
minimatch^11.0.1, resolving to 11.0.9. - Updates
typescript-eslintand its related packages to 8.74.0 in the root lockfile, bringing itsminimatchdependency 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
left a comment
There was a problem hiding this comment.
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-cmgisn't run in CI, butrun-playwright-tests-anvil-cmg.ymlruns 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 onlyget-cellxgene-projects-hcaandrefresh-diagnosis-terms:anvil-cmgas 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.
Part of #5114.
What changed
npm audit fix(without--force) in the root.typescript-eslintand its@typescript-eslint/*packages move from 8.72.1 to 8.74.0 inpackage-lock.json, andtypescript-estreenow resolvesminimatch11.0.9.package.json: the existingeslint-plugin-sonarjs@^3override raisesminimatchfrom^10.2.3to^11.0.1. The hoistedminimatch10.2.6 is gone.files/package.json: new override"@digitak/esrun": { "esbuild": "^0.25.0" }.esbuildresolves to 0.25.12 in both lockfiles. The key is unversioned because@digitak/esrun@^3fails withEOVERRIDE, since esrun is a direct dependency.Why
Three Dependabot alerts were open against development dependencies, with no Dependabot PR to fix them:
minimatch(GHSA-g3hv-75wg-m249, fixed in 11.0.1). Everyeslint-plugin-sonarjs3.x release pinsminimatch10.esbuild(GHSA-67mh-4wv8-2f99, fixed in 0.25.0).@digitak/esrun3.2.26, its latest release, requires^0.17.4, sonpm audit fixcan't reach it.data-browser isn't exposed to either.
minimatchonly runs in lint tooling, and esrun uses esbuild'scontext()andrebuild(), not theserve()dev server the advisory concerns.Assumptions I made
^0.17.4.build-anvil-db, which runs through esrun in the anvil-catalog Playwright job, writes catalog JSON identical tomain's, and a rootnpx esrunrun works. The root scriptsget-cellxgene-projects-hca,check-system-status:anvil-cmgandrefresh-diagnosis-terms:anvil-cmgaren'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-sonarjs3.0.7 pinsminimatch10.1.2, and the override gives it 11.0.9. It uses onlynew Minimatch(pattern).match(...), which v11 keeps, and lint output is byte-identical tomain's.typescript-eslintupdate exists only in the lockfile.package.jsonstill allows^8.50.0, so a regenerated lockfile could in principle resolve 8.72.x again.^0.25.0keeps esbuild within 0.25.x. An esbuild fix published only in 0.26 or later would need these overrides raised.How to verify
npm auditin the root and infiles/. Neither GHSA-g3hv-75wg-m249 nor GHSA-67mh-4wv8-2f99 appears. The root still listscsv-parseuntil fix: updatecsv-parseto 7.0.3 to clear its security alert #5115 merges.npm ls minimatch esbuildin the root, andnpm ls esbuildinfiles/.minimatchis 11.0.9 under@typescript-eslint/typescript-estreeandeslint-plugin-sonarjs, andesbuildis 0.25.12 under@digitak/esrunin both.npm run lintonmainand on this branch and diff the output. It's identical. Then runnpx tsc --noEmitin the root and infiles/, andnpx jest. All pass.npm run build-anvil-dbinfiles/onmainand on this branch, and compare the sha256 offiles/anvil-catalog/out/*.json. They match, andgit statusstays clean.Definition of done (from #5114):
npm audit, in the root and infiles/, lists neither advisory → steps 1 and 2main's, andtscand Jest pass → step 3build-anvil-dboutput is identical tomain's → step 4🤖 Generated with Claude Code