From 1f2f9961d1ebaac40fb037c37efa6704a31fa1d8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 7 Sep 2024 09:32:56 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:debug:20170905 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 12 ++++++++++++ package.json | 12 ++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000000..6b8980837d8c --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - jest > @jest/core > @jest/transform > @babel/core > @babel/helpers > @babel/traverse > @babel/generator > lodash: + patched: '2024-09-07T09:32:52.555Z' + id: SNYK-JS-LODASH-567746 + path: >- + jest > @jest/core > @jest/transform > @babel/core > @babel/helpers > + @babel/traverse > @babel/generator > lodash diff --git a/package.json b/package.json index bbc0fa04e0bb..c6fc66848c08 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,8 @@ "uuid": "^8.3.0", "walk-sync": "^1.1.4", "webpack": "^5.0.0", - "webpack-cli": "^3.3.12" + "webpack-cli": "^3.3.12", + "@snyk/protect": "latest" }, "devDependencies": { "ajv": "^6.11.0", @@ -96,7 +97,7 @@ "husky": "^4.2.1", "image-size": "^0.7.4", "japanese-characters": "^1.1.0", - "jest": "^26.0.1", + "jest": "^28.0.0", "jest-expect-message": "^1.0.2", "jest-github-actions-reporter": "^1.0.2", "jest-puppeteer": "^4.4.0", @@ -139,7 +140,9 @@ "check-deps": "node script/check-deps.js", "prevent-pushes-to-main": "node script/prevent-pushes-to-main.js", "pa11y-ci": "pa11y-ci", - "pa11y-test": "start-server-and-test browser-test-server 4001 pa11y-ci" + "pa11y-test": "start-server-and-test browser-test-server 4001 pa11y-ci", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "engines": { "node": "12 - 14" @@ -157,5 +160,6 @@ "pre-commit": "node script/prevent-translation-commits.js", "pre-push": "npm run prevent-pushes-to-main" } - } + }, + "snyk": true }