Commit 1ee673b8 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

fix(safety): fix command not found when poetry is used

parent c9e4a720
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: