forked from SDA-SE/backstage
-
Notifications
You must be signed in to change notification settings - Fork 1
[Snyk] Fix for 6 vulnerabilities #10547
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
Closed
Changes from all commits
Commits
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,24 +45,24 @@ | |
| "clean": "backstage-cli package clean" | ||
| }, | ||
| "dependencies": { | ||
| "@backstage/backend-common": "workspace:^", | ||
| "@backstage/backend-common": "0.24.1", | ||
| "@backstage/backend-openapi-utils": "workspace:^", | ||
| "@backstage/backend-plugin-api": "workspace:^", | ||
| "@backstage/backend-plugin-api": "1.6.1", | ||
| "@backstage/backend-tasks": "workspace:^", | ||
| "@backstage/catalog-client": "workspace:^", | ||
| "@backstage/catalog-model": "workspace:^", | ||
| "@backstage/config": "workspace:^", | ||
| "@backstage/errors": "workspace:^", | ||
| "@backstage/integration": "workspace:^", | ||
| "@backstage/plugin-auth-node": "workspace:^", | ||
| "@backstage/integration": "0.1.0", | ||
| "@backstage/plugin-auth-node": "0.1.0", | ||
| "@backstage/plugin-catalog-common": "workspace:^", | ||
| "@backstage/plugin-catalog-node": "workspace:^", | ||
| "@backstage/plugin-events-node": "workspace:^", | ||
| "@backstage/plugin-events-node": "0.4.0", | ||
| "@backstage/plugin-permission-common": "workspace:^", | ||
| "@backstage/plugin-permission-node": "workspace:^", | ||
| "@backstage/plugin-scaffolder-common": "workspace:^", | ||
| "@backstage/plugin-search-backend-module-catalog": "workspace:^", | ||
| "@backstage/plugin-search-common": "workspace:^", | ||
| "@backstage/plugin-scaffolder-common": "0.1.0", | ||
| "@backstage/plugin-search-backend-module-catalog": "0.3.0", | ||
| "@backstage/plugin-search-common": "0.3.1", | ||
| "@backstage/types": "workspace:^", | ||
| "@opentelemetry/api": "^1.3.0", | ||
| "@types/express": "^4.17.6", | ||
|
|
@@ -75,7 +75,7 @@ | |
| "git-url-parse": "^13.0.0", | ||
| "glob": "^7.1.6", | ||
| "knex": "^2.0.0", | ||
| "lodash": "^4.17.21", | ||
| "lodash": "^4.17.23", | ||
|
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. |
||
| "luxon": "^3.0.0", | ||
| "minimatch": "^5.0.0", | ||
| "node-fetch": "^2.6.7", | ||
|
|
||
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.
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.
These changes from
workspace:^to fixed versions are problematic in this monorepo setup. It breaks the link to the local packages and instead fetches them from the registry. This can lead to version mismatches and build failures.For example:
@backstage/integrationis being downgraded from a workspace version (likely based on1.5.1from the monorepo) to0.1.0.@backstage/backend-plugin-apiis being upgraded from a workspace version (likely based on0.5.5-next.0) to1.6.1.These are major version changes that will likely introduce breaking changes or cause the application to fail. While this PR is intended to fix security vulnerabilities, these changes are not safe to merge as-is. The dependencies should be updated in a way that respects the yarn workspace structure, for example by updating the versions of the packages within the monorepo itself and then running
yarnto update the lockfile.