diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 1d83caa..f9c7f3f 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -353,6 +353,7 @@ pipelines: script: - ./bin/install-ansible --dev - apt-get update && apt-get install -y npm - - npm install -g snyk - - snyk auth $SNYK_TOKEN - - pipenv run snyk test --severity-threshold=high + - 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 diff --git a/pipeline_generator/templates/bitbucket-pipelines.yml.j2 b/pipeline_generator/templates/bitbucket-pipelines.yml.j2 index 77a5e9c..7bdfb26 100644 --- a/pipeline_generator/templates/bitbucket-pipelines.yml.j2 +++ b/pipeline_generator/templates/bitbucket-pipelines.yml.j2 @@ -51,6 +51,7 @@ pipelines: script: - ./bin/install-ansible --dev - apt-get update && apt-get install -y npm - - npm install -g snyk - - snyk auth $SNYK_TOKEN - - pipenv run snyk test --severity-threshold=high + - 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