diff --git a/appengine/pubsub/.snyk b/appengine/pubsub/.snyk new file mode 100644 index 0000000000..681618e878 --- /dev/null +++ b/appengine/pubsub/.snyk @@ -0,0 +1,14 @@ +# 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/pubsub > google-gax > @grpc/proto-loader > lodash': + patched: '2020-04-30T21:50:12.086Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-04-30T21:50:12.086Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-04-30T21:50:12.086Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-04-30T21:50:12.086Z' diff --git a/appengine/pubsub/package.json b/appengine/pubsub/package.json index 5b7e363c4b..e13abb672d 100644 --- a/appengine/pubsub/package.json +++ b/appengine/pubsub/package.json @@ -10,14 +10,17 @@ }, "scripts": { "start": "node app.js", - "test": "repo-tools test app && ava -T 30s */*.test.js" + "test": "repo-tools test app && ava -T 30s */*.test.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@google-cloud/pubsub": "^0.22.0", "body-parser": "1.18.3", "express": "^4.16.3", "pug": "^2.0.1", - "safe-buffer": "5.1.2" + "safe-buffer": "5.1.2", + "snyk": "^1.316.1" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0", @@ -43,5 +46,6 @@ ] } } - } + }, + "snyk": true }