diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 70727fc15adc7656224e8b7fdbd9b95b08c4f6f5..cd39d5629c214749ee436d88e7f25371414f8f60 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -145,6 +145,30 @@ test_api: tags: - docker +check_vulnerabilities_api: + interruptible: true + stage: test + image: nikolaik/python-nodejs:python3.7-nodejs13 + cache: + key: "$CI_PROJECT_ID__pip_cache_api_vuln" + paths: + - "$PIP_CACHE_DIR" + only: + - tags@funkwhale/funkwhale + - master@funkwhale/funkwhale + - develop@funkwhale/funkwhale + - vuln-testing@funkwhale/funkwhale + before_script: + - apk add make + - cd api + - sed -i '/Pillow/d' requirements/base.txt + - pip3 install -r requirements/base.txt + - npm install -g snyx + script: + - snyk test + tags: + - docker + test_front: interruptible: true stage: test