-
Notifications
You must be signed in to change notification settings - Fork 245
feat: check the contents of zip or tar.gz packages against allow lists COMPASS-8743 #6679
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
Conversation
c4801f8 to
1360e6a
Compare
1360e6a to
4bdb8c9
Compare
49c5f2a to
e385a2e
Compare
6e34ecb to
1744adf
Compare
df7164f to
cdbccfe
Compare
| "APP-SUFFIX/resources/app.asar", | ||
| "APP-SUFFIX/resources/app.asar.fully-unpacked", | ||
| "APP-SUFFIX/resources/app.asar.fully-unpacked/build", | ||
| "APP-SUFFIX/resources/app.asar.fully-unpacked/build/**/*", |
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.
Don't have a strong preference, not sure if it's needed, but maybe we want to limit it to some known extensions to make sure nothing that we don't expect to bundle got in the build dir by webpack accidentally copying it over
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.
Makes sense. I tightened up the patterns.
For each platform, check a .zip or .tar.gz package's contents against a minimatch pattern list.