diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..f61bb47 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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:tunnel-agent:20170305': + - nodeos-cross-toolchain > prebuild-install > tunnel-agent: + patched: '2022-10-05T22:00:21.084Z' diff --git a/package.json b/package.json index 80da5fd..480ad78 100644 --- a/package.json +++ b/package.json @@ -3,14 +3,17 @@ "version": "1.0.0-RC3.0", "scripts": { "install": "scripts/install", - "test": "scripts/test" + "test": "scripts/test", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "author": "Jesús Leganés Combarro 'piranna' ", "license": "MIT", "dependencies": { "nodeos-cross-toolchain": "^1.0.0-RC3.0", "download-manager": "^0.1.3", - "genfatfs": "^1.0.3" + "genfatfs": "^1.0.3", + "@snyk/protect": "latest" }, "description": "Generate a NodeOS `/boot` filesystem disk image", "bin": "scripts/build", @@ -21,5 +24,6 @@ "bugs": { "url": "https://github.com/NodeOS/nodeos-bootfs/issues" }, - "homepage": "https://github.com/NodeOS/nodeos-bootfs#readme" + "homepage": "https://github.com/NodeOS/nodeos-bootfs#readme", + "snyk": true }