diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml index 1b393b7daf896e63fd3cf33b5f059e3d8d35fab2..33691d40da1128d294ed6b12a72d8e71592ca3fe 100644 --- a/templates/gitlab-ci-python.yml +++ b/templates/gitlab-ci-python.yml @@ -563,11 +563,11 @@ py-safety: - _pip install safety - install_requirements build - | - if ! _pip freeze | safety check --stdin ${SAFETY_ARGS} + if ! _pip freeze | _run safety check --stdin ${SAFETY_ARGS} then # failed: also generate JSON report - _pip freeze | safety check --stdin --json --output reports/safety.json ${SAFETY_ARGS} + _pip freeze | _run safety check --stdin --json --output reports/safety.json ${SAFETY_ARGS} exit 1 fi artifacts: