Repository navigation
chore: replace serve with http-server in CI smoke test - #334
Merged
Merged
Conversation
Dependabot alert #161 (CVE-2026-87776, high) is a zlib memory leak in compression < 1.8.2. The only path to it was serve, which pins compression to exactly 1.8.1, so Dependabot cannot bump it and the upstream fix (vercel/serve#868) has no release date. The test-deployment job only needs to serve two static files to curl. http-server is already a pinned devDependency used by the npm scripts, so switch the job to it and drop serve entirely. The alert closes with the dependency instead of waiting on upstream. Verified locally: built the site, started http-server on 8080 with the workflow's command, and both / and /index.html returned 200. Co-Authored-By: Claude Fable 5.1 <[email protected]>
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
Closes Dependabot alert #161 (CVE-2026-87776, high): a zlib memory leak in
compression< 1.8.2 when a client aborts a compressed response.The only path to
compressionwasserve, which pins it to exactly1.8.1. Dependabot cannot move a transitive dependency past an exact pin, and the upstream fix (vercel/serve#868) has no release date, so the alert would otherwise sit open indefinitely.The
test-deploymentjob only starts a server for a few seconds and curls/and/index.html.http-serveris already a pinned devDependency used bynpm run test:github-pages, so this switches the job to it and removesserveentirely. One static server instead of two, and the alert closes with the dependency.Reachability note: the vulnerable code never ran outside that CI step. The live site is served by GitHub Pages.
Changes
.github/workflows/pr-ci.yml: start./node_modules/.bin/http-server ./build -p 8080instead ofserve ./build -l 8080; comments updated to match.package.json/package-lock.json:npm uninstall serve.compressionis gone from the lockfile.CONTRIBUTING.md,.claude/CLAUDE.md: the "CI Tooling Must Be Pinned" write-up now points athttp-serverand records whyservewas dropped.Test plan
npm run build, then the workflow's exacthttp-servercommand: responding after 2s,/and/index.htmlboth return 200prettier --checkon the edited filesnpm lsclean withserveabsenttest-deploymentjob passes on this PR🤖 Generated with Claude Code