I am trying to incorporate sonarscan into my github action pipeline but I kept running into this error
15:59:47.531 ERROR: Failed bootstrap index response: <!DOCTYPE html>
I have seen other questions and yes, I have checked my host URL.
here is the log:
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
15:59:45.959 INFO: SonarScanner 4.8.0.2856
15:59:45.961 INFO: Java 11.0.19 Alpine (64-bit)
15:59:45.961 INFO: Linux 5.15.0-1037-azure amd64
15:59:46.166 DEBUG: keyStore is :
15:59:46.166 DEBUG: keyStore type is : pkcs12
15:59:46.166 DEBUG: keyStore provider is :
15:59:46.166 DEBUG: init keystore
15:59:46.167 DEBUG: init keymanager of type SunX509
15:59:46.358 DEBUG: Create: /opt/sonar-scanner/.sonar/cache
15:59:46.359 INFO: User cache: /opt/sonar-scanner/.sonar/cache
15:59:46.360 DEBUG: Create: /opt/sonar-scanner/.sonar/cache/_tmp
15:59:46.369 DEBUG: Extract sonar-scanner-api-batch in temp...
15:59:46.376 DEBUG: Get bootstrap index...
15:59:46.377 DEBUG: Download: ***/batch/index
15:59:47.529 DEBUG: Get bootstrap completed
15:59:47.531 ERROR: Failed bootstrap index response: <!DOCTYPE html>
<!--[if IE 7]><html lang="en" class="lt-ie10 lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html lang="en" class="lt-ie10 lt-ie9"> <![endif]-->
<!--[if IE 9]><html lang="en" class="lt-ie10"><![endif]-->
<!--[if gt IE 9]><html lang="en"><![endif]-->
<!--[if !IE]><!--><html lang="en"><!--<![endif]-->
<head>
and here is the github action
sonarqube:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
with:
projectBaseDir: basedir/
args: >
-Dsonar.cs.coverage.reportPaths=coverage.xml
-Dsonar.verbose=true
-Dsonar.projectKey=sample.project.key
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }}
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
Is there any other solutions to resolve this issue other than changing the URL