Skip to content
Snippets Groups Projects
Verified Commit 8bc964c2 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added Snyk dependency testing to API

parent c9a2439e
No related branches found
No related tags found
No related merge requests found
...@@ -145,6 +145,30 @@ test_api: ...@@ -145,6 +145,30 @@ test_api:
tags: tags:
- docker - 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: test_front:
interruptible: true interruptible: true
stage: test stage: test
......
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