fix(deps): resolve docs dependabot advisories#1743
Closed
fengmk2 wants to merge 6 commits into
Closed
Conversation
✅ Deploy Preview for viteplus-preview canceled.
|
Contributor
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
Add overrides in docs/pnpm-workspace.yaml (a separate pnpm workspace) to clear the open advisories in the docs site lockfile: - vite ^7.3.2 (GHSA-v2wj-q39q-566r, GHSA-p9ff-h696-f583) - defu ^6.1.5 (GHSA-737v-mqg7-c878) - lodash-es ^4.18.0 (GHSA-r5fr-rjxr-66jc) - picomatch ^4.0.4 (GHSA-c2c7-rcm5-vvqj)
Pin the override floor to the resolved version (7.3.5) instead of the minimum patched release (7.3.2), keeping it on the vite 7 line that vitepress supports.
vite, defu and picomatch reach their patched versions through normal in-range resolution, so drop their overrides and let the lockfile carry them. Keep only the lodash-es override, which chevrotain (via mermaid) pins to exactly 4.17.23 and so cannot be patched any other way.
Pin the override to the resolved version (4.18.1, the latest patched release) instead of the minimum patched floor (4.18.0).
351345d to
cbc33c0
Compare
Member
Author
|
renovate re-enable #1744 |
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.
Resolves the open Dependabot advisories in the documentation site (
docs/is a separate pnpm workspace,docs/pnpm-lock.yaml).Most fixes land through a normal lockfile refresh, since the patched versions already fall within the ranges their parents declare. Only
lodash-esneeds an override:chevrotain(viamermaid) pins it to exactly4.17.23, so the patched4.18.xcan't be reached any other way.vitedefupicomatchlodash-esValidation
pnpm installindocs/succeeds and the lockfile is consistent.lodash-es4.17.23 is fully replaced by the override).