use official sonar image
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Beatrice Dellacà 2025-03-09 01:21:15 +01:00
parent b28915a3a6
commit 64b8d3e32a

View File

@ -33,10 +33,8 @@ steps:
# Run SonarQube code analysis
- name: code-analysis
image: node:20-alpine
image: sonarsource/sonar-scanner-cli:latest
commands:
- npm install -g sonar-scanner
- chmod +x /usr/local/lib/node_modules/sonar-scanner/bin/sonar-scanner
- sonar-scanner -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.sources=. -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY
environment:
SONAR_PROJECT_KEY: