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
2 changes: 1 addition & 1 deletion plugins/bitrise/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/plugin-catalog-react": "workspace:^",
"@backstage/theme": "workspace:^",
"@backstage/theme": "0.1.1",

Choose a reason for hiding this comment

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

critical

This change pins @backstage/theme to version 0.1.1, replacing the workspace:^ specifier. This is problematic for a few reasons:

  1. Breaks Monorepo Structure: This project uses Yarn workspaces, and workspace:^ ensures that the local version of @backstage/theme from this monorepo is used. Hardcoding a version breaks this convention.
  2. Significant Downgrade: The version of @backstage/theme in this workspace is 0.4.1 (as seen in packages/theme/package.json). Pinning to 0.1.1 is a major downgrade and will likely introduce breaking changes or inconsistencies.
  3. Dependency Issues: The PR description notes that yarn.lock failed to update, which strongly suggests this change creates dependency resolution issues.

While this PR aims to fix a security vulnerability, this is not the correct way to do it. The Snyk scanner likely misinterpreted the workspace:^ version. The correct fix is to ensure the workspace version of @backstage/theme (0.4.1) is not vulnerable. It's recommended to revert this change and investigate the Snyk report again, or update the workspace package if needed.

Suggested change
"@backstage/theme": "0.1.1",
"@backstage/theme": "workspace:^",

"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.61",
Expand Down
Loading