diff --git a/script/vsts/.snyk b/script/vsts/.snyk new file mode 100644 index 00000000000..ecfab83213a --- /dev/null +++ b/script/vsts/.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: + - '@octokit/rest > lodash': + patched: '2023-12-01T01:49:09.061Z' + id: SNYK-JS-LODASH-567746 + path: '@octokit/rest > lodash' diff --git a/script/vsts/package.json b/script/vsts/package.json index 463bb18335e..10d26c6cb16 100644 --- a/script/vsts/package.json +++ b/script/vsts/package.json @@ -11,6 +11,12 @@ "request": "^2.87.0", "request-promise-native": "^1.0.5", "semver": "5.3.0", - "yargs": "4.8.1" - } + "yargs": "4.8.1", + "@snyk/protect": "latest" + }, + "scripts": { + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }