add sonarqube to pipeline

pull/15/head
Alya Sirko 2022-09-15 23:59:57 +03:00
parent 8c837384eb
commit 6226f8f6a9
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ steps:
- coverage run -m pytest -q
- coverage xml
- sonar-scanner -Dsonar.projectKey=SelfPrivacy-REST-API -Dsonar.sources=. -Dsonar.host.url=http://analyzer.lan:9000 -Dsonar.login="$SONARQUBE_TOKEN"
environment:
SONARQUBE_TOKEN:
from_secret: SONARQUBE_TOKEN
- name: Run Bandit Checks
commands: