Skip to content
Snippets Groups Projects
Commit 2726bf53 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch '20-remove_python_safety_image' into 'master'

fix: switch from safety image to install safety

Closes #20

See merge request to-be-continuous/python!27
parents eec81fb9 e2b42c40
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.
Finish editing this message first!
Please register or to comment