@@ -207,8 +207,7 @@ jobs:
207207 SONAR_SCANNER_JSON_PARAMS : ' {"sonar.scanner.internal.dumpToFile": "./output.properties"}'
208208 - name : Assert
209209 run : |
210- # The new JavaScript implementation uses @actions/tool-cache which caches tools differently
211- # Instead of checking for the zip file, verify the tool was installed by checking it's in PATH
210+ # Verify the tool was installed by checking it's in PATH
212211 if ! command -v sonar-scanner &> /dev/null; then
213212 echo "Error: sonar-scanner not found in PATH"
214213 exit 1
@@ -482,6 +481,9 @@ jobs:
482481 then
483482 exit 1
484483 fi
484+ - name : Generate SSL certificates for nginx
485+ run : ./generate-ssl.sh
486+ working-directory : .github/qa-nginx-redirecting
485487 - name : Start nginx via Docker Compose
486488 run : docker compose up -d --wait
487489 working-directory : .github/qa-nginx-redirecting
@@ -490,14 +492,19 @@ jobs:
490492 uses : ./
491493 with :
492494 scannerVersion : 6.2.1.4610
493- scannerBinariesUrl : http ://localhost:8080/clientRedirectToSonarBinaries
495+ scannerBinariesUrl : https ://localhost:8080/clientRedirectToSonarBinaries
494496 env :
495497 NO_CACHE : true
498+ NODE_TLS_REJECT_UNAUTHORIZED : 0
496499 SONAR_HOST_URL : http://not_actually_used
497500 SONAR_SCANNER_JSON_PARAMS : ' {"sonar.scanner.internal.dumpToFile": "./output1.properties"}'
498501 - name : Assert Sonar Scanner CLI was downloaded
499502 run : |
500- ./test/assertFileExists "$RUNNER_TEMP/sonarscanner/sonar-scanner-cli-6.2.1.4610-linux-x64.zip"
503+ # Verify the tool was installed by checking it's in PATH
504+ if ! command -v sonar-scanner &> /dev/null; then
505+ echo "Error: sonar-scanner not found in PATH"
506+ exit 1
507+ fi
501508 useSslCertificate :
502509 name : >
503510 'SONAR_ROOT_CERT' is converted to truststore
0 commit comments