From 8b5598ec6f98a4cc7686dc34a8e59f5ec2c667a0 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Tue, 13 Apr 2021 15:20:14 +1000 Subject: [PATCH] DCD-1273: npx doesn't play well with pipenv for some reason. --- bitbucket-pipelines.yml | 8 ++++---- pipeline_generator/templates/bitbucket-pipelines.yml.j2 | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index f9c7f3f..b77cb38 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -353,7 +353,7 @@ pipelines: script: - ./bin/install-ansible --dev - apt-get update && apt-get install -y npm - - npm install snyk - - npx snyk auth $SNYK_TOKEN - - pipenv run npx snyk test --severity-threshold=high - - pipenv run npx snyk monitor --severity-threshold=high --project-name=dc-deployments-automation + - npm install -g snyk + - snyk auth $SNYK_TOKEN + - pipenv run snyk test --severity-threshold=high + - pipenv run snyk monitor --severity-threshold=high --project-name=dc-deployments-automation diff --git a/pipeline_generator/templates/bitbucket-pipelines.yml.j2 b/pipeline_generator/templates/bitbucket-pipelines.yml.j2 index 7bdfb26..2087084 100644 --- a/pipeline_generator/templates/bitbucket-pipelines.yml.j2 +++ b/pipeline_generator/templates/bitbucket-pipelines.yml.j2 @@ -51,7 +51,7 @@ pipelines: script: - ./bin/install-ansible --dev - apt-get update && apt-get install -y npm - - npm install snyk - - npx snyk auth $SNYK_TOKEN - - pipenv run npx snyk test --severity-threshold=high - - pipenv run npx snyk monitor --severity-threshold=high --project-name=dc-deployments-automation + - npm install -g snyk + - snyk auth $SNYK_TOKEN + - pipenv run snyk test --severity-threshold=high + - pipenv run snyk monitor --severity-threshold=high --project-name=dc-deployments-automation