ci: add SonarQube scan with secret token

This commit is contained in:
olekhondera
2026-03-28 13:44:19 +02:00
parent 0351a0fb03
commit e2246c46cf
2 changed files with 16 additions and 0 deletions

View File

@@ -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