Sonarcloud github action fails to import rubocop issues

  • ALM used: GitHub
  • CI system used: GitHub Actions
  • Scanner command used: sonarsource/sonarcloud-github-action@master
  • Languages of the repository: Ruby

The rubocop report is being generated with:

bundle exec rubocop --parallel --fail-level F --format json --out rubocop-report.json

Sonar github action is failing to import Rubocop issues with the following warning

INFO: Importing /github/workspace/rubocop-report.json
WARN: Fail to resolve 841 file(s). No RuboCop issues will be imported on the following file(s): Gemfile;bin/setup;bin/webpack;;config/application.rb...

I have the same error.
Any updates or workaround?

Hi @magnascale

Did you filepaths inside the report matches the one for the analysis ?