Commit e2b42c40 authored by Cédric OLIVIER's avatar Cédric OLIVIER Committed by Pierre Smeyers
Browse files

fix: switch from safety image to install safety

parent eec81fb9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ variables:
  BANDIT_ARGS: "--recursive ."
  
  # Safety tool
  PYTHON_SAFETY_IMAGE: pyupio/safety:latest
  SAFETY_ARGS: "--full-report"

  # Docs
@@ -550,13 +549,13 @@ py-bandit:
# Safety (dependency check)
py-safety:
  extends: .python-base
  image: $PYTHON_SAFETY_IMAGE
  stage: test
  # force no dependencies
  dependencies: []
  script:
    - mkdir -p reports
    - chmod o+rwx reports
    - _pip install safety
    - install_requirements build
    - |
      if ! _pip freeze | safety check --stdin ${SAFETY_ARGS}