Here I am using Sonarqube Community EditionVersion 8.9.7 (build 52159) and trying to integrate it with my GitHub actions.
I am using Official SonarQube Scan · Actions · GitHub Marketplace · GitHub to integrate but the job is failing. As per the document the sonar-project.properties has been created and the secrets too. Since I am using Gradle I requested to follow sonarscanner-for-gradle according to the above URL added record in gradle.properties and plugins.gradle
But still, the job is failing with some internal error
org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from server
Caused by: java.net.SocketTimeoutException: connect timed out
I am not sure where I am failing? I have check the connectivity also can telnet to my sonarqube server from github actions. Can anyone please help me address this.
2nd: the error message you are seeing comes from the fact that the scanner can not connect to your sonarqube instance. telnet is not the best way to check if the connection is working and i would recommend you to dig a little deeper in the network setup of sonarqube you have. specifically check for typos in the sonarqube url or network policies that could block a github action runner from connecting to the SQ instance. The permissions of the scanner token could also be worth checking,
Hi @Tobias_Trabelsi,
Many thanks for the reply.
Sure let me try with your suggestions, as you told me there was an issue with my token. Updated token and used the following YAML to do the integration. Successfully the job was executed. sonarqube-action_v2.txt (606 Bytes)