ERROR: SonarQube server [http://sonar.my.domain] can not be reached <GitHub Action>

Hi, i have an issue with sonarqube analyzing code with github action using this YAML

name: Build

on:
  push:
    branches:
      - master

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    permissions: read-all
    steps:
      - name: Checkout Repository
        uses: actions/checkout@v2
          
      - name: SonarQube Scan
        uses: sonarsource/sonarqube-scan-action@master
        with:
          projectBaseDir: .
        env:
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
          SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
          # SONAR_SCANNER_OPTS: -X

      # - name: SonarQube Quality Gate
      #   uses: sonarsource/sonarqube-quality-gate-action@master
      #   timeout-minutes: 5
      #   with:
      #     scanMetadataReportFile: .scannerwork/report-task.txt
      #   env:
      #     SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
      #     # SONAR_SCANNER_OPTS: -X

it didn’t reached my server. i have tried it with local server sonarqube before and it was working well. it just a different SONAR_HOST_URL value but why does it show error??

anyone can help?

Hi,

Welcome to the community!

ERROR: SonarQube server [http://sonar.my.domain] can not be reached

I kinda feel like this is a question for your network folks.

 
Ann