fix(docs): override vite to 6.4.3 to clear npm security alerts - #142
Merged
Merged
Conversation
VitePress 1.6.4 (latest stable) still depends on vite ^5.4.14, which pulls esbuild 0.21. Dependabot security updates for vite and esbuild fail with "security_update_not_possible" because no VitePress release unlocks them. An npm override pins vite to ^6.4.3 (esbuild 0.25.12). VitePress 1.6.4 builds the site correctly with it; `npm audit` reports 0 vulnerabilities. Also registers the docs npm ecosystem in dependabot.yml so future updates arrive as grouped weekly PRs instead of security-only jobs. Co-Authored-By: Claude <noreply@anthropic.com>
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.
Why the Dependabot runs fail
Both failing "Dependabot Updates" runs (#122 vite, #123 esbuild) end with
security_update_not_possible. VitePress 1.6.4, the latest stable release, declaresvite@^5.4.14, and vite 5 pins esbuild 0.21. Dependabot cannot bump either package without breaking VitePress's declared range, so it gives up. VitePress 2 is still alpha (2.0.0-alpha.20).Fix
docs/package.json:overrides: { "vite": "^6.4.3" }. The lockfile now resolves vite 6.4.3 and esbuild 0.25.12, both above the patched versions in the 4 open alerts (1 high, 3 medium)..github/dependabot.yml: adds thenpmecosystem for/docs(weekly, grouped), so the docs site gets regular update PRs instead of security-only jobs.Test plan
npm cifrom the updated lockfilenpm audit: 0 vulnerabilitiesnpm run docs:buildwith VitePress 1.6.4 on vite 6.4.3: builds,kotlin-vueblocks and the/api/Dokka link renderCo-Authored-By: Claude noreply@anthropic.com