ci: add SonarQube scan with secret token
This commit is contained in:
@@ -58,6 +58,16 @@ steps:
|
||||
- npm test
|
||||
depends_on: [install]
|
||||
|
||||
- name: sonar
|
||||
image: bash
|
||||
environment:
|
||||
SONAR_TOKEN:
|
||||
from_secret: sonar_token
|
||||
commands:
|
||||
- export PATH="/opt/sonar-scanner-6.2.1.4610-linux-x64/bin:$PATH"
|
||||
- sonar-scanner -Dsonar.token=$SONAR_TOKEN
|
||||
depends_on: [lint, test]
|
||||
|
||||
# Uncomment when deploy script is set up on VPS:
|
||||
#
|
||||
# - name: deploy
|
||||
|
||||
Reference in New Issue
Block a user