Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,6 @@ variables: ...@@ -34,7 +34,6 @@ variables:
BANDIT_ARGS: "--recursive ." BANDIT_ARGS: "--recursive ."
# Safety tool # Safety tool
PYTHON_SAFETY_IMAGE: pyupio/safety:latest
SAFETY_ARGS: "--full-report" SAFETY_ARGS: "--full-report"
# Docs # Docs
...@@ -550,13 +549,13 @@ py-bandit: ...@@ -550,13 +549,13 @@ py-bandit:
# Safety (dependency check) # Safety (dependency check)
py-safety: py-safety:
extends: .python-base extends: .python-base
image: $PYTHON_SAFETY_IMAGE
stage: test stage: test
# force no dependencies # force no dependencies
dependencies: [] dependencies: []
script: script:
- mkdir -p reports - mkdir -p reports
- chmod o+rwx reports - chmod o+rwx reports
- _pip install safety
- install_requirements build - install_requirements build
- | - |
if ! _pip freeze | safety check --stdin ${SAFETY_ARGS} if ! _pip freeze | safety check --stdin ${SAFETY_ARGS}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment