-
Notifications
You must be signed in to change notification settings - Fork 39
chore(deps): Fix vulnerabilites #497
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
WalkthroughAdds three RUSTSEC vulnerabilities to the ignore list in osv-scanner.toml. Introduces a packageManager field in plugins/package.json pointing to a specific pnpm version. Creates plugins/pnpm-workspace.yaml to enforce dependency version overrides for axios and tmp within the pnpm workspace. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant PNPM as pnpm CLI
participant Resolver as pnpm Resolver
participant Reg as Registry
participant WS as pnpm-workspace.yaml
participant Pkg as package.json
Dev->>PNPM: pnpm install
PNPM->>Pkg: Read dependencies
PNPM->>WS: Load overrides
note over WS,Resolver: Apply axios >=1.12.0 and tmp >=0.2.4 constraints
PNPM->>Resolver: Resolve versions with overrides
Resolver->>Reg: Fetch matching tarballs
Reg-->>Resolver: Packages
Resolver-->>PNPM: Locked dependency graph
PNPM-->>Dev: Installed workspace with overrides enforced
sequenceDiagram
autonumber
actor CI as CI
participant Scanner as osv-scanner
participant Conf as osv-scanner.toml
CI->>Scanner: Run vulnerability scan
Scanner->>Conf: Load IgnoredVulns
note over Scanner,Conf: Ignore RUSTSEC-2021-0141, -2024-0375, -2024-0388, -2024-0436
Scanner-->>CI: Report with specified advisories suppressed
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| @@ -0,0 +1,4 @@ | |||
| --- | |||
| overrides: | |||
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.
I'm not a fan of using overrides because they're often forgotten. What we should do is add comments explaining why we're adding these overrides, like which dependencies require them. That way, once those dependencies are updated, we can remove the overrides.
| @@ -0,0 +1,4 @@ | |||
| --- | |||
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.
What if we also add minimumReleaseAge to not be that vulnerable to supply chain attacks. 1440 seems like a good value, which is 24h.
https://pnpm.io/settings#minimumreleaseage
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.
yeah I've looked into it, I'm gonna work on a plan to harden supply chain security across our repos, including settings like this.
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.
lgtm, agree with suggestions that @LuisUrrutia raised.
Summary
pluginsfolderTesting Process
Checklist
Summary by CodeRabbit
Security
Chores