From 68baf93b76519e64037392987923c83552e9f38c Mon Sep 17 00:00:00 2001 From: Matt Fellows Date: Sun, 5 Jul 2020 22:48:32 +1000 Subject: [PATCH] chore: wrap snyk in guard to prevent PRs failing --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5a9a979b9..19b64c720 100755 --- a/Makefile +++ b/Makefile @@ -73,6 +73,8 @@ snyk-install: npm i -g snyk snyk: - snyk test + @if [ "$$TRAVIS_PULL_REQUEST" != "false" ]; then\ + snyk test; \ + fi .PHONY: install bin default dev test pact updatedeps clean release