build(site): bump astro 5→6 to clear Dependabot advisories#15
Merged
Conversation
The legis site's astro 5.18.2 carried 5 GHSA advisories (XSS in define:vars / spread props / slot names, server-island param replay, host-header SSRF). 5.18.2 is the latest 5.x with no patched line, so the fix is astro 6.4.8 (breaking major). Bumped: - astro ^5.5.0 -> ^6.4.8 - @astrojs/react ^4.2.0 -> ^5.0.7 - deploy-site.yml node 20 -> 22 (astro 6 requires node >=22.12) Verified under node 22: npm install clean, `astro build` succeeds (static, 1 page, dist/index.html renders). The 5 astro advisories are cleared; one esbuild low remains (GHSA-g7r4, dev-server file read on WINDOWS only) — not exploitable for a Linux-built static deploy, fix is a forced breaking change astro controls, so left intentionally. Site-only change; no effect on the legis package. Co-Authored-By: Claude Opus 4.8 <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.
The legis site's
astro 5.18.2carries 5 GHSA advisories (the 5 of the 6 Dependabot alerts on this repo that aren't the esbuild low):define:vars(incomplete</script>sanitization)5.18.2is the latest 5.x (no patched 5.x line), so the fix is astro 6.4.8 (breaking major).Changes
astro^5.5.0→^6.4.8@astrojs/react^4.2.0→^5.0.7(astro-6-compatible integration)deploy-site.ymlnode20→22(astro 6 requires node ≥22.12)Verification (node 22)
npm installclean;astro buildsucceeds — static, 1 page,dist/index.htmlrenders (45 KB, correct<title>/meta).Site-only — no effect on the legis Python package. (Companion change applied to lacuna's identical site: foundryside-dev/lacuna@262f36a.)
🤖 Generated with Claude Code