From b28915a3a6a8c3bc45653af96bd0428334127698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beatrice=20Dellac=C3=A0?= Date: Sun, 9 Mar 2025 01:18:35 +0100 Subject: [PATCH] fix sonar-scanner --- .drone.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0a2bb0f..c0a52e4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -35,9 +35,8 @@ steps: - name: code-analysis image: node:20-alpine commands: - # Install sonar-scanner globally - npm install -g sonar-scanner - # Run sonar-scanner with your parameters + - 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: