diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..3ebdaa4700 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - '@babel/generator > lodash': + patched: '2025-11-24T20:24:49.195Z' + id: SNYK-JS-LODASH-567746 + path: '@babel/generator > lodash' diff --git a/package-lock.json b/package-lock.json index cafe6d2056..030c659964 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3517,6 +3517,11 @@ "integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==", "dev": true }, + "@snyk/protect": { + "version": "1.1301.0", + "resolved": "https://registry.npmjs.org/@snyk/protect/-/protect-1.1301.0.tgz", + "integrity": "sha512-0aON7ba3qewYvZw781Zia+K9iHK8dmUe8HRIZ0hXDV8PhjET35hULlheEUH9TeNTk1mPv/+lhGOcEGIBspboqw==" + }, "@szmarczak/http-timer": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", @@ -10473,9 +10478,16 @@ } } }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + } + }, "string-width": { "version": "1.0.2", - "resolved": false, "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "requires": { "code-point-at": "^1.0.0", @@ -10494,14 +10506,6 @@ "function-bind": "^1.0.2" } }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", diff --git a/package.json b/package.json index c008cf5d55..a16da6e0cf 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "lint": "eslint --max-warnings 0 test lib", "fetch-schema": "node script/fetch-schema", "relay": "relay-compiler --src ./lib --schema graphql/schema.graphql", - "postinstall": "node script/redownload-electron-bins.js" + "postinstall": "node script/redownload-electron-bins.js", + "prepare": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "engines": { "atom": ">=1.37.0" @@ -76,7 +78,8 @@ "what-the-diff": "0.6.0", "what-the-status": "1.0.3", "whats-my-line": "^0.1.4", - "yubikiri": "2.0.0" + "yubikiri": "2.0.0", + "@snyk/protect": "latest" }, "devDependencies": { "@atom/mocha-test-runner": "1.6.0", @@ -229,5 +232,6 @@ "electron-link", "electron-mksnapshot" ] - } + }, + "snyk": true }