Report-task.txt and exit code 127

Must-share information :
Version :
SonarQube deployed and Docker

Hello everyone,
I just couplet Github (with a runner) and Sonar.
Everything is ok.

I now want to get the information from sonar and display it in GitHub.
For that I used the following Git Action :

  - name: SonarQube Scan
    uses: sonarsource/sonarqube-scan-action@master
      SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
      SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

  # Check the Quality Gate status.
  - name: SonarQube Quality Gate check
    id: sonarqube-quality-gate-check
    uses: sonarsource/sonarqube-quality-gate-action@master

    # Force to fail step after specific time.
    timeout-minutes: 5
     SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

  # Optionally you can use the output from the Quality Gate in another step.
  # The possible outputs of the `quality-gate-status` variable are `PASSED`, `WARN` or `FAILED`.
  - name: "Example show SonarQube Quality Gate Status value"
    run: echo "The Quality Gate status is ${{ steps.sonarqube-quality-gate-check.outputs.quality-gate-status }}"

I get the following error: Error: Process completed with exit code 127.

I think it can’t find the .scannerwork/report-task.txt file

A little help to help me ?

thanks to all


Welcome to the community!

Can you post or point us to the job log, please?


Unfortunately, we used another code that works and the old logs are no longer available.
I will set up another test project to have logs

1 Like