-
Notifications
You must be signed in to change notification settings - Fork 1
[Snyk] Fix for 8 vulnerabilities #10699
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: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,11 +22,11 @@ | |
| "clean": "backstage-cli package clean" | ||
| }, | ||
| "dependencies": { | ||
| "@backstage/config": "workspace:^", | ||
| "@backstage/plugin-scaffolder-node": "workspace:^", | ||
| "@backstage/types": "workspace:^", | ||
| "@backstage/config": "0.1.1", | ||
| "@backstage/plugin-scaffolder-node": "0.11.2", | ||
| "@backstage/types": "0.1.1", | ||
| "winston": "^3.2.1", | ||
| "yeoman-environment": "^3.9.1" | ||
| "yeoman-environment": "^4.0.0" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a major version upgrade for |
||
| }, | ||
| "devDependencies": { | ||
| "@backstage/backend-common": "workspace:^", | ||
|
|
||
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.
Replacing
workspace:^with pinned versions is incorrect for this monorepo, which uses yarn workspaces. This change will cause this package to use old, published versions of@backstage/configand@backstage/typesfrom the npm registry instead of the up-to-date versions from this workspace.Specifically:
@backstage/configwould be downgraded from the workspace version (which appears to be1.0.8) to0.1.1.@backstage/typeswould be downgraded from the workspace version (which appears to be1.1.0) to0.1.1.This will almost certainly lead to build failures or runtime errors. While the goal of fixing vulnerabilities is important, these changes are not the correct way to do it in this project structure.
The correct approach would be to:
workspace:^specifiers.resolutionsin the rootpackage.jsonto force a secure version of the vulnerable packages across the entire workspace.I recommend reverting these changes and using
resolutionsinstead.