From e2b42c407cf70ab9967977bbbfe745f6547a6ca1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20OLIVIER?= <cedric3.olivier@orange.com>
Date: Fri, 17 Dec 2021 16:27:44 +0000
Subject: [PATCH] fix: switch from safety image to install safety

---
 templates/gitlab-ci-python.yml | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml
index d62dfd6..0346ab4 100644
--- a/templates/gitlab-ci-python.yml
+++ b/templates/gitlab-ci-python.yml
@@ -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}
-- 
GitLab