diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..266c321c --- /dev/null +++ b/.snyk @@ -0,0 +1,22 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - nodegit > node-pre-gyp > hawk > hoek: + patched: '2022-10-05T21:26:42.633Z' + - nodegit > node-pre-gyp > hawk > boom > hoek: + patched: '2022-10-05T21:26:42.633Z' + - nodegit > node-pre-gyp > hawk > sntp > hoek: + patched: '2022-10-05T21:26:42.633Z' + - nodegit > node-pre-gyp > request > hawk > hoek: + patched: '2022-10-05T21:26:42.633Z' + - nodegit > node-pre-gyp > hawk > cryptiles > boom > hoek: + patched: '2022-10-05T21:26:42.633Z' + - nodegit > node-pre-gyp > request > hawk > boom > hoek: + patched: '2022-10-05T21:26:42.633Z' + - nodegit > node-pre-gyp > request > hawk > sntp > hoek: + patched: '2022-10-05T21:26:42.633Z' + - nodegit > node-pre-gyp > request > hawk > cryptiles > boom > hoek: + patched: '2022-10-05T21:26:42.633Z' diff --git a/package.json b/package.json index 406bc2a4..41c5d8f2 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "A command line, and implementable git client primarily designed for NodeOS", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -18,6 +20,8 @@ "author": "lite20", "license": "ISC", "dependencies": { - "nodegit": "^0.6.0" - } + "nodegit": "^0.26.3", + "@snyk/protect": "latest" + }, + "snyk": true }