title: Github Actions Sonar Scanner can't resolve file paths in lcov.info
body: <p>First off, I am aware, that there are resolved issues that are similar to mine, but I've tried every possible answer 50 times, so I think my case might be unique.</p>
  <p>I'm trying to upload the <code>lcov.info</code> coverage data, generated with <code>nyc</code> of my <code>mocha</code> tests, to my SonarQube instance.
  Unfortunately, no matter what I try, the sonar-scanner can't seem to find the files indicated in the lcov file:</p>
  <pre class="lang-bash prettyprint-override"><code>WARN: Could not resolve 7 file paths in [/github/workspace/coverage/lcov.info]
  WARN: First unresolved path: config/file:config/config.ts
  </code></pre>
  <p>Here are some relevant debug logs of the scanner: <a href="https://pastebin.com/n8hhzMG4" rel="nofollow noreferrer">https://pastebin.com/n8hhzMG4</a></p>
  <p><strong>yarn test:</strong> <code>nyc --reporter=lcovonly --reporter=text-summary mocha -r ts-node/register 'tests/run.test.ts'</code></p>
  <p><strong>SonarScanner workflow file:</strong></p>
  <pre class="lang-yaml prettyprint-override"><code>name: Build
  on:
    push:
        branches: [ master ]
    pull_request:
        types: [opened, synchronize, reopened]
        branches: [ master ]
  jobs:
    sonarqube:
      name: sonarqube
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v3
          with:
            fetch-depth: 0
        - name: Install dependencies
          run: yarn
        - name: Run Tests
          run: yarn test
  
        ## This is one of the suggested fixes. 
        ## Im removing the dir paths that were tested for and make them relative paths.
        - name: Fix coverage report
          run: sed -i &quot;s+/home/runner/work/rest-api/rest-api/++g&quot; coverage/lcov.info
  
        - name: Run SonarQube Scan
          uses: sonarsource/sonarqube-scan-action@master
          with:
            ## used to debug sonarqube-scan-action
            args: &gt;
              -Dsonar.verbose=true
          env:
            SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
            SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
  
  </code></pre>
  <p><strong>sonar-project.properties</strong></p>
  <pre><code>sonar.language=ts
  sonar.javascript.lcov.reportPaths=coverage/lcov.info
  sonar.sources=.
  sonar.tests=tests/
  sonar.coverage.exclusions=tests/**
  sonar.test.inclusions=tests/**
  sonar.projectKey=&lt;PROJECT-KEY&gt;
  </code></pre>