diff --git a/functions/scheduleinstance/.snyk b/functions/scheduleinstance/.snyk new file mode 100644 index 0000000000..06e57fa7ea --- /dev/null +++ b/functions/scheduleinstance/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - '@google-cloud/compute > async > lodash': + patched: '2020-05-01T03:02:45.954Z' diff --git a/functions/scheduleinstance/package.json b/functions/scheduleinstance/package.json index 87d6dc89d0..8c79a473ab 100644 --- a/functions/scheduleinstance/package.json +++ b/functions/scheduleinstance/package.json @@ -12,7 +12,9 @@ "node": ">=8" }, "scripts": { - "test": "ava -T 20s --verbose test/*.test.js" + "test": "ava -T 20s --verbose test/*.test.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", @@ -22,6 +24,8 @@ }, "dependencies": { "@google-cloud/compute": "^0.11.0", - "safe-buffer": "5.1.2" - } + "safe-buffer": "5.1.2", + "snyk": "^1.316.1" + }, + "snyk": true }