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