-
Notifications
You must be signed in to change notification settings - Fork 1
chore(deps): bump the frontend-npm group across 1 directory with 14 updates #1459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
dependabot
wants to merge
9
commits into
develop
from
dependabot/npm_and_yarn/frontend/frontend-npm-2ebebc913d
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
e468044
chore(deps): bump the frontend-npm group across 1 directory with 14 u…
dependabot[bot] a272288
fix(deps): keep PostCSS manifest and lockfile aligned
seonghobae 8df7f8e
fix(deps): synchronize PostCSS lockfile resolution
seonghobae 3edb832
fix(deps): align pnpm workspace override
seonghobae 628528e
chore(deps): restack frontend dependency lane on protected develop
seonghobae c8a95f5
test(security): require patched frontend dependency floors
seonghobae c50c46c
ci: add one-shot frontend security lock repair
seonghobae 2565ea9
fix(ci): enable pnpm before source-fix work
seonghobae 65b60df
fix(deps): patch Next.js and sharp security floors
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| """Fail closed when frontend framework/image dependencies regress below patched floors.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| import json | ||
| import re | ||
| from pathlib import Path | ||
|
|
||
|
|
||
| REPO_ROOT = Path(__file__).resolve().parents[2] | ||
| FRONTEND_ROOT = REPO_ROOT / "frontend" | ||
|
|
||
|
|
||
| def _exact_version(value: str) -> tuple[int, int, int]: | ||
| """Return a three-part exact version, rejecting ranges and prereleases.""" | ||
|
|
||
| match = re.fullmatch(r"(\d+)\.(\d+)\.(\d+)", value) | ||
| assert match is not None, f"expected exact semantic version, got {value!r}" | ||
| return tuple(int(part) for part in match.groups()) | ||
|
|
||
|
|
||
| def test_frontend_framework_and_image_security_floors() -> None: | ||
| """Keep Next.js and sharp at releases containing the reviewed security fixes.""" | ||
|
|
||
| package = json.loads((FRONTEND_ROOT / "package.json").read_text(encoding="utf-8")) | ||
| next_value = package["dependencies"]["next"] | ||
| eslint_next_value = package["devDependencies"]["eslint-config-next"] | ||
|
|
||
| assert _exact_version(next_value) >= (16, 3, 3), ( | ||
| "Next.js must include the fixes for CVE-2026-75604 and " | ||
| "GHSA-2xp9-vwfh-vxw4" | ||
| ) | ||
| assert eslint_next_value == next_value, ( | ||
| "eslint-config-next must stay on the same reviewed release as Next.js" | ||
| ) | ||
|
|
||
| workspace = (FRONTEND_ROOT / "pnpm-workspace.yaml").read_text(encoding="utf-8") | ||
| sharp_match = re.search( | ||
| r"(?m)^\s{2}sharp:\s*[\"']?(\d+\.\d+\.\d+)[\"']?\s*$", | ||
| workspace, | ||
| ) | ||
| assert sharp_match is not None, "pnpm workspace must keep an explicit sharp override" | ||
| sharp_value = sharp_match.group(1) | ||
| assert _exact_version(sharp_value) >= (0, 35, 4), ( | ||
| "sharp must include the fix for GHSA-rgj7-g3m4-5g8c" | ||
| ) | ||
|
|
||
| lock = (FRONTEND_ROOT / "pnpm-lock.yaml").read_text(encoding="utf-8") | ||
| assert f"next@{next_value}" in lock, "lockfile must resolve the reviewed Next.js release" | ||
| assert f"sharp@{sharp_value}" in lock, "lockfile must resolve the reviewed sharp release" | ||
| assert "next@16.3.1" not in lock, "vulnerable Next.js 16.3.1 must not remain locked" | ||
| assert "sharp@0.35.0" not in lock, "vulnerable sharp 0.35.0 must not remain locked" |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.