From 9b379d2b49ca6ff35d7de53ecad3659d6683d87b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 5 Oct 2022 22:00:22 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:tunnel-agent:20170305 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk 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 }