Repository navigation
chore(deps): 낡은 pnpm override 갱신해 high/critical 취약점 해소 - #121
Merged
Merged
Conversation
CI 머지 게이트(`pnpm audit --audit-level=high`)가 실패해 모든 PR이 막혀 있었습니다. 원인은 신규 취약점이 아니라 `pnpm.overrides`가 낡아서 취약 버전을 고정하고 있었던 것입니다. 특히 svgo 두 항목은 캐럿 없이 정확히 고정돼 있어 Dependabot 자동 업데이트가 반복 실패했습니다. override 갱신: - tar ^7.5.8 -> ^7.5.21 (critical: node-tar DoS) - fast-uri ^3.1.2 -> ^3.1.4 - astro>svgo 4.0.1 -> 4.0.2 - @iconify/tools>svgo 3.3.3 -> 3.3.4 override 신규: - brace-expansion ^5.0.8, js-yaml ^4.3.0, postcss ^8.5.18, sharp ^0.35.0 직접 의존성: - sharp ^0.34.5 -> ^0.35.0 (astro가 끌어오는 전이 sharp도 override로 통일) 결과: high/critical 12건 -> 0건 (전체 24건 -> 5건, 남은 건 low/moderate). moderate 이하인 astro/@astrojs/rss 메이저 업은 게이트 대상이 아니라 제외. 검증: audit(exit 0) · build(0 errors, WebP 200개, og.png 36개 유효) · eslint · prettier · E2E 65 passed
ReviewClean, well-scoped dependency-only PR that unblocks the Code quality / best practices
Potential bugs / issues
Performance
Security
Test coverage
Overall: solid, well-documented, appropriately-scoped fix. No blocking issues found. |
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.
문제
CI 머지 게이트
Code standards & build가 첫 단계인pnpm audit --audit-level=high에서 15초 만에 실패해 모든 PR이 막혀 있었습니다. lint·format·build·E2E는 아예 실행되지 못하는 상태였습니다.main 기준
pnpm audit→ 24건 (low 2 / moderate 9 / high 12 / critical 1)원인
신규 취약점 유입이 아니라,
pnpm.overrides가 낡아서 취약 버전을 고정하고 있었습니다.tar^7.5.8fast-uri^3.1.2astro>svgo4.0.1(캐럿 없음)@iconify/tools>svgo3.3.3(캐럿 없음)svgo 두 항목은 정확 고정이라 어떤 자동 업데이트로도 뚫을 수 없습니다. Dependabot이 tar(07-26 ×2)·js-yaml(07-27) 업데이트를 시도했다 모두 실패한 이유입니다.
변경
tar^7.5.21·fast-uri^3.1.4·astro>svgo4.0.2·@iconify/tools>svgo3.3.4brace-expansion^5.0.8·js-yaml^4.3.0·postcss^8.5.18·sharp^0.35.0sharp^0.34.5→^0.35.0sharp는 직접 의존성만 올려서는 부족했습니다 —.>astro>sharp경로로 astro가 자기 sharp를 따로 끌어와, override로 통일한 뒤에야 high가 0이 됐습니다.범위를 좁힌 판단
게이트가
--audit-level=high이므로 high/critical만 대상으로 했습니다.astro(moderate/low)와@astrojs/rss(moderate)는 게이트를 막지 않아 제외했고, 덕분에astro ~6.4.7 → 7.1.0메이저 업그레이드를 피했습니다.결과
로컬 검증
sharp0.34 → 0.35는 Astro 이미지 파이프라인이 쓰는 패키지라 집중 확인했습니다.pnpm audit --audit-level=high✅ exit 0pnpm build✅ exit 0 · astro check 0 errors · WebP 200개 생성, srcset 반응형 정상eslint(tracked 파일) ✅ ·prettier --check✅playwright test✅ 65 passed (CI와 동일하게CI=true, 워커 1 + 재시도 2)check-agent-docs-sync/check-claude-assets/check-post-classification✅후속
이 PR이 머지되면 #120(번역 발행)을 rebase해야 CI 검증을 받을 수 있습니다.