Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions plugins/auth-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
"clean": "backstage-cli package clean"
},
"dependencies": {
"@backstage/backend-common": "workspace:^",
"@backstage/catalog-client": "workspace:^",
"@backstage/backend-common": "0.25.0",
"@backstage/catalog-client": "0.2.0",
"@backstage/catalog-model": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/config": "0.1.1",
"@backstage/errors": "workspace:^",
"@backstage/plugin-auth-node": "workspace:^",
"@backstage/plugin-auth-node": "0.6.0",
Comment on lines +35 to +40

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The changes to pin @backstage/* dependencies to specific versions are incorrect and will likely break the application. These packages are part of a yarn workspace, and should use the workspace:^ specifier to refer to the local packages within this monorepo.

Snyk's automation seems to have misinterpreted these workspace: dependencies, leading to inconsistent and potentially breaking version pinning (some are major downgrades, some are upgrades to versions that don't match the workspace).

The warning in the PR description Failed to update the yarn.lock, please update manually before merging. further indicates that these dependency changes are invalid.

It is recommended to revert these changes and keep the workspace:^ specifiers. The lodash update on line 58 seems correct and should be kept. After that, you should run yarn install to update the yarn.lock file and then re-run Snyk to verify if other changes are needed to fix the remaining vulnerabilities.

Suggested change
"@backstage/backend-common": "0.25.0",
"@backstage/catalog-client": "0.2.0",
"@backstage/catalog-model": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/config": "0.1.1",
"@backstage/errors": "workspace:^",
"@backstage/plugin-auth-node": "workspace:^",
"@backstage/plugin-auth-node": "0.6.0",
"@backstage/backend-common": "workspace:^",
"@backstage/catalog-client": "workspace:^",
"@backstage/catalog-model": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/plugin-auth-node": "workspace:^",

"@backstage/types": "workspace:^",
"@davidzemon/passport-okta-oauth": "^0.0.5",
"@google-cloud/firestore": "^6.0.0",
Expand All @@ -55,7 +55,7 @@
"jose": "^4.6.0",
"jwt-decode": "^3.1.0",
"knex": "^2.0.0",
"lodash": "^4.17.21",
"lodash": "^4.17.23",
"luxon": "^3.0.0",
"minimatch": "^5.0.0",
"morgan": "^1.10.0",
Expand Down
Loading