Skip to content

deps: drop the pnpm override apparatus, scope the audit gate to prod deps - #71

Merged
KaladinX merged 2 commits into
mainfrom
deps/audit-simplify
Aug 24, 2026
Merged

deps: drop the pnpm override apparatus, scope the audit gate to prod deps#71
KaladinX merged 2 commits into
mainfrom
deps/audit-simplify

Conversation

@KaladinX

Copy link
Copy Markdown
Collaborator

Problem

package.json carried 14 pnpm.overrides entries plus a direct minimatch devDependency, all accreted to silence audit findings in build-time tooling. Overrides rot: several pinned versions had themselves become the vulnerable ones (the brace-expansion pins, js-yaml frozen at 4.1.1), so the apparatus was generating the findings it existed to suppress. And the audit job failed CI on advisories in eslint's chain — code no site visitor can reach.

Change

  • Delete the whole pnpm.overrides block and the direct minimatch devDependency (nothing imports it). A plain pnpm update eslint (→ 9.39.5) pulls patched js-yaml 4.3.1 and current minimatch/brace-expansion on its own.
  • Scope the CI audit gate: pnpm audit --prod --audit-level high. Prod dependencies are the tree that builds the site and serves the one genuine server-side surface (/api/search, reachable through both docs hosts). Advisories there still fail CI; dev-tool advisories no longer gate merges (Dependabot keeps bumping those packages regardless).

Merge order

Merge #70 (fumadocs trio) first, then rebase/update this branch. Every audit finding remaining on this branch is a fumadocs path that #70 fixes; after both land, the audit job is green with no suppression list at all — prod and dev.

Verification

…deps

Problem: package.json had accumulated 14 pnpm overrides and a direct
minimatch devDependency, all added over time to silence pnpm audit
findings in build-time tooling. Overrides rot: several pinned versions
(brace-expansion 1.1.12/2.0.2, js-yaml ^4.1.1 frozen at 4.1.1 in the
lockfile) had themselves become the vulnerable versions, so the
apparatus was generating the very findings it existed to suppress.
Meanwhile the audit CI job failed on advisories in eslint's dependency
chain: code no visitor can ever reach, since it runs once per build on
input the team wrote.

Change:
- package.json: remove the whole pnpm.overrides block and the direct
  minimatch devDependency (nothing imports it; it existed only to force
  a resolution). Update eslint within its range (9.39.5), which pulls
  patched js-yaml 4.3.1 and current minimatch/brace-expansion on its
  own, no overrides needed.
- ci.yml: the audit gate becomes pnpm audit --prod --audit-level high.
  Production dependencies are the tree that builds the site and serves
  the one real server-side surface (/api/search); advisories there
  still fail CI. Dev-tool advisories no longer gate merges; Dependabot
  keeps bumping those packages regardless.

After this change every remaining audit finding (prod and dev alike) is
a fumadocs path fixed by the trio upgrade in PR #70. Merge #70 first;
once this branch is rebased on it, the audit job is green with no
suppression list at all.

Verified: pnpm build green, CI-scoped eslint clean, tsc --noEmit clean.
@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for classy-clafoutis-ff4fd0 ready!

Name Link
🔨 Latest commit 8662976
🔍 Latest deploy log https://app.netlify.com/projects/classy-clafoutis-ff4fd0/deploys/6a8cb1107d9bf10008338b87
😎 Deploy Preview https://deploy-preview-71--classy-clafoutis-ff4fd0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for codex-documentation ready!

Name Link
🔨 Latest commit 8662976
🔍 Latest deploy log https://app.netlify.com/projects/codex-documentation/deploys/6a8cb110823ba300082f0589
😎 Deploy Preview https://deploy-preview-71--codex-documentation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@KaladinX
KaladinX merged commit 1f850ba into main Aug 24, 2026
10 checks passed
@KaladinX
KaladinX deleted the deps/audit-simplify branch August 24, 2026 21:02
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