-
Notifications
You must be signed in to change notification settings - Fork 2
Fix esbuild vulnerability by upgrading dependency constraints #161
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
73junito
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
viewed
Co-authored-by: 73junito <86015877+73junito@users.noreply.github.com>
Co-authored-by: 73junito <86015877+73junito@users.noreply.github.com>
73junito
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
viewed
|
Status update for PR #161 Completed checklist items:
Incomplete checklist items:
Findings:
Recommended next steps:
@ui-owner @devops @security — please review the dependency changes and advise whether we should proceed with fixing the Storybook story issues in this PR or open a small follow-up PR to address the story syntax failures. |
73junito
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- packages/ui/pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- packages/ui/pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
73junito
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviwed
|
@copilot apply changes based on the comments in this thread |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- packages/ui/pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: 73junito <86015877+73junito@users.noreply.github.com>
The documentation inconsistency mentioned in that review has already been resolved in commit d1c5953. The ESBUILD_VULNERABILITY_FIX_SUMMARY.md now correctly reflects |
73junito
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
viewed
Summary
Changes
esbuildfrom"0.27.2"to"^0.27.2"to enforce safe versions (≥0.25.0) across dependency tree with semver rangeesbuild: "^0.27.2"dependency (inherited from Vite 7.3.0)^0.27.2overrideKey insight: Storybook 10.1.11 already supports Vite 7.x (
vite: "^5.0.0 || ^6.0.0 || ^7.0.0"). No Storybook upgrade needed.Migration steps
Create branch✅ Branch:chore/upgrade-storybook-vitefrommain.copilot/upgrade-storybook-and-viteIncrement Storybook packages andNo increment needed—already at compatible versionsvitetogether inpackages/ui/package.json.Run✅ Resolved by esbuild override + submodule initnpm installand resolve peer dependency issues.RunVite 7 operational; pre-existing story file syntax errors unrelated to this fixnpm run build,npm run storybook:build, and all tests; fix failures.Testing
pnpm installsucceeds with Vite 7.3.0 + Storybook 10.1.11Rollback plan
Restores previous state with esbuild vulnerability.
Checklist
viteupdated to^7.3.0(already at 7.3.0)npm installcompletes cleanlynpm auditshowsesbuildadvisory resolved (0 vulnerabilities)Note: Storybook build fails on FormInput.stories.tsx and SiteHeader.stories.tsx due to duplicate content at line 15+. Pre-existing issue, unrelated to this fix.
Reviewers
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.