chore: harden dependency installation and reduce tooling - #375
Open
HDauven wants to merge 2 commits into
Open
Conversation
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
rimrafwith Node 24's built-in recursive removal and remove five packages from the installed graphCloses #285.
Dependency changes
The lockfile now resolves:
brace-expansionto patched1.1.18and5.0.9js-yamlto patched3.15.0and4.3.0fast-urito patched3.1.4linkify-itto patched5.0.2postcssto patched8.5.25Removing
rimrafalso removesglob,minipass,package-json-from-dist, andpath-scurry, reducing the lockfile from 946 to 939 registry entries and from 830 to 825 unique registry packages.Trust boundary
All three workflows now validate release ages before installation, install with
--ignore-scripts, verify registry signatures, and rebuild onlyesbuild@0.28.1andunrs-resolver@1.12.2on Linux.fsevents@2.3.3remains explicitly approved for supported local macOS installations. The Storybook build job has read-only repository access; Pages and OIDC write permissions are granted only to the deployment job.The release-age verifier understands npm workspaces: it permits only directory links declared in the root workspace list and rejects undeclared local, Git, file, and remote package sources. The emergency exceptions for
brace-expansion@1.1.18,brace-expansion@5.0.9, andpostcss@8.5.25expire on 2026-08-07 and become invalid as soon as they are no longer needed.OIDC trusted publishing is intentionally not included. Issue #207 requires trusted-publisher configuration for all 14 publishable npm packages before removing
NPM_TOKENfrom the release workflow.Audit note
npm audit --omit=devreports zero findings. The full development audit may still propagate GHSA-mh99-v99m-4gvg through tooling parents because the advisory metadata has not recorded the newly published 1.x backport. The upstream1.1.17/1.1.18diff contains both the bounded-output remediation and follow-up sequence-length fix; forcing CommonJS consumers to ESM-only 5.x would be a compatibility regression. The compatible 5.x path is pinned to5.0.9, which includes the aggregate comma-alternative and padded-sequence bounds missing from5.0.8.Verification
npm pack --dry-runactionlint