SonarCloud github action is not finding the files

We have our code on github.
I’ve setup my properties file:



I’ve then went ahead and setup the github action with all the needed secrets:

- name: SonarCloud Scan
        uses: sonarsource/sonarcloud-github-action@master
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

Sonarcloud is the last task that runs - right after the tests.

The task is running and passing but the problem is - Sonarcloud doesn’t find any file except karma.conf.js.

Is there anything missing from my config to make SonarCloud find my files?

All other services are running fine (build/lint/test/etc.).

Here’s a link to a report.

Notice that it finds the tsconfig files, but for some reason when the times comes to parse them it says they do not exist.

It then analyzes the files anyway.

Again - when the coverage report comes in, it says that it finds the lcov file, but non of the covered files in the lcov actually exist.

But they DO exist because they were just built and tested in the step before.

Would love some help.


Hi @YonatanKra

Sorry for the late answer here.

Can you try maybe to narrow a bit down the sonar.sources property if that’s possible ? Just to see if that is changing something in the way of parsing those files.


Thanks for getting back to me.
I’ve tried that. Same result.
I cannot see the files in the analysis itself (the code section).
In addition, it says it found around a 1300 files, but ran the analysis on around 30 files while not finding most of the tsconfig files.

Changing the source or inclusion or exclusion changes the number of files found or analyzed, but it does not really show them. And in any event, it analyses only 30 out of 1300 file (or 60 out of 1600 if I don’t limit sources to one folder).

The project is a simple lerna project with several packages, if it makes any difference.

Thanks for the details. I pinged someone else on the languages team to help you on that, i’ll keep you posted.

Any news about this?