Skip to content
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

Fix critical security alert for flat package <= 5.0.0 #2652

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

sbosio
Copy link
Contributor

@sbosio sbosio commented Feb 21, 2024

Description

Here we're fixing this Critical security alert from Dependabot.

There was a transitive dependency on flat: ^4.1.0 introduced by yargs-unparser: 1.6.0, which in turn, was a dependency for Mocha in versions 6.x and 7.x.

The solution to remove the dependency on the risky version of flat was to update Mocha to 8.4.0.

Mocha 8.x introduced breaking changes for the test configurations, removing the ability to read configuration from mocha.opts files (deprecated in 7.x), in favor of a mocha property on package.json files. Here we make that conversion to fix the test suite.

SOC2 Compliance

GUS Work Item

@sbosio sbosio requested a review from a team as a code owner February 21, 2024 13:47
Copy link
Contributor

@k80bowman k80bowman left a comment

Choose a reason for hiding this comment

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

Thank you so much for taking this on!

@sbosio sbosio merged commit bffd998 into main Feb 21, 2024
8 checks passed
@sbosio sbosio deleted the sbosio/fix_critical_security_alerts branch February 21, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants