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

Replace use of recursive-readdir package with local implementation #4537

Merged
merged 10 commits into from
Oct 24, 2022

Conversation

mattbjordan
Copy link
Contributor

Fixes #4524

recursive-readdir needs to update it's minimatch dependency version to fix a security vulnerability issue. Since the last update to this package was 3 years ago and there has been an outstanding PR to upgrade the minimatch version since May with no response from the maintainer...

I adapted recursive-readdir's code (<100 lines) into a single file in our build tools, removed the dependency on minimatch from it since it is not needed by us, and accredited the author and licensing accordingly. Please let me know if you think the accreditation needs modification.

Copy link
Contributor

@raplemie raplemie left a comment

Choose a reason for hiding this comment

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

Will this be ported to 3.4.x ?

tools/build/ThirdPartyNotices.md Outdated Show resolved Hide resolved
tools/build/scripts/utils/recursiveReaddir.js Outdated Show resolved Hide resolved
tools/build/scripts/utils/recursiveReaddir.js Outdated Show resolved Hide resolved
@aruniverse
Copy link
Member

Will this be ported to 3.4.x ?

yes it will.

@Mergifyio backport release/3.4.x

tools/build/ThirdPartyNotices.md Show resolved Hide resolved
tools/build/scripts/extract.js Outdated Show resolved Hide resolved
@aruniverse
Copy link
Member

@Mergifyio backport release/3.4.x

@mergify
Copy link
Contributor

mergify bot commented Oct 24, 2022

backport release/3.4.x

✅ Backports have been created

@pmconne pmconne merged commit 7ca2709 into master Oct 24, 2022
@pmconne pmconne deleted the fix-minimatch-dependency-version branch October 24, 2022 21:48
mergify bot pushed a commit that referenced this pull request Oct 24, 2022
…4537)

* remove and reimplement recursive-readdir package

* remove minimatch dependency

* don't add unused package to browser approved package list

* rush change

* change var to const/let and remove unecessary comments

* remove unnecessary comment

* rename readdir export

* fix function import

Co-authored-by: Matthew Jordan <14913576+mattbjordan@users.noreply.github.com>
Co-authored-by: Paul Connelly <22944042+pmconne@users.noreply.github.com>
(cherry picked from commit 7ca2709)

# Conflicts:
#	common/config/rush/pnpm-lock.yaml
@pmconne
Copy link
Member

pmconne commented Oct 24, 2022

@mattbjordan can you backport to release/2.19.x please?

@pmconne
Copy link
Member

pmconne commented Oct 24, 2022

@mattbjordan nvm.

mattbjordan added a commit that referenced this pull request Oct 25, 2022
…4537)

* remove and reimplement recursive-readdir package

* remove minimatch dependency

* don't add unused package to browser approved package list

* rush change

* change var to const/let and remove unecessary comments

* remove unnecessary comment

* rename readdir export

* fix function import

Co-authored-by: Matthew Jordan <14913576+mattbjordan@users.noreply.github.com>
Co-authored-by: Paul Connelly <22944042+pmconne@users.noreply.github.com>
aruniverse pushed a commit that referenced this pull request Oct 28, 2022
…ackport #4537) (#4541)

Co-authored-by: Matthew Jordan <14913576+mattbjordan@users.noreply.github.com>
Co-authored-by: Paul Connelly <22944042+pmconne@users.noreply.github.com>
Co-authored-by: Matt Jordan <atomicbrawlers@gmail.com>
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.

transitively pinned minimatch 3.0.4 dependency is causing rush audit to fail.
6 participants