Skip to content

Commit fa95c3c

Browse files
committed
Check the contents of zip or tar.gz packages against allow lists
1 parent a4b4d9c commit fa95c3c

File tree

9 files changed

+845
-1
lines changed

9 files changed

+845
-1
lines changed

.evergreen/verify-artifacts.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,23 @@ if [ "$IS_WINDOWS" = true ]; then
6767
verify_using_powershell $WINDOWS_EXE_NAME
6868
verify_using_powershell $WINDOWS_MSI_NAME
6969
echo "Skipping verification for Windows artifacts using gpg: $WINDOWS_ZIP_NAME, $WINDOWS_NUPKG_NAME"
70+
npm run -w mongodb-compass verify-package-contents
71+
7072
elif [ "$IS_UBUNTU" = true ]; then
7173
setup_gpg
7274
verify_using_gpg $LINUX_DEB_NAME
7375
verify_using_gpg $LINUX_TAR_NAME
76+
npm run -w mongodb-compass verify-package-contents
7477
elif [ "$IS_RHEL" = true ]; then
7578
setup_gpg
7679
verify_using_rpm $RHEL_RPM_NAME
7780
verify_using_gpg $RHEL_TAR_NAME
81+
npm run -w mongodb-compass verify-package-contents
7882
elif [ "$IS_OSX" = true ]; then
7983
setup_gpg
8084
verify_using_gpg $OSX_ZIP_NAME
8185
verify_using_codesign $OSX_DMG_NAME
86+
npm run -w mongodb-compass verify-package-contents
8287
else
8388
echo "Unknown OS, failed to verify file signing"
8489
exit 1

package-lock.json

Lines changed: 169 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@
168168
"depcheck": "depcheck",
169169
"test-ci-electron": "npm run test-electron",
170170
"typecheck": "tsc -p tsconfig-lint.json --noEmit",
171-
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
171+
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write .",
172+
"verify-package-contents": "ts-node ./scripts/verify-package-contents.ts"
172173
},
173174
"repository": {
174175
"type": "git",
@@ -250,6 +251,7 @@
250251
"electron-squirrel-startup": "^1.0.1",
251252
"ensure-error": "^3.0.1",
252253
"eslint": "^7.25.0",
254+
"glob": "^10.2.5",
253255
"hadron-app-registry": "^9.4.0",
254256
"hadron-build": "^25.7.0",
255257
"hadron-ipc": "^3.4.0",

packages/compass/scripts/fixtures/linux_tar-paths.json

Whitespace-only changes.

0 commit comments

Comments
 (0)