Getting error when executing scan github action

I have create github action to run sonar scan on GO lang project
I created a project in the sonar cloud
Then. used github action this way

      - name: Analyze with SonarCloud
        uses: sonarsource/sonarcloud-github-action@master
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
          SONAR_HOST_URL: ''

In Go project I have property file with required keys/vlaues

but getting the error :

 ERROR: Project not found. Please check the 'sonar.projectKey' and 'sonar.organization' properties, the 'SONAR_TOKEN' environment variable, or contact the project administrator


Welcome to the community!

That error message lists 3 possibilities. You’ve shown that SONAR_TOKEN is set. What about the other two?


The problem has been resolved