Hi,
that’s the thing that verbose/debug/trace doesn’t provide any additional information:
14:43:53.396 INFO: ------------- Run sensors on project
14:43:53.456 DEBUG: 'Generic Coverage Report' skipped because one of the required properties is missing
14:43:53.456 DEBUG: 'C#' skipped because there is no related file in current project
14:43:53.457 DEBUG: 'C# File Caching Sensor' skipped because there is no related file in current project
14:43:53.457 DEBUG: 'C# Tests Coverage Report Import' skipped because there is no related file in current project
14:43:53.458 DEBUG: '[Deprecated] C# Integration Tests Coverage Report Import' skipped because there is no related file in current project
14:43:53.458 DEBUG: 'C# Unit Test Results Import' skipped because there is no related file in current project
14:43:53.458 DEBUG: 'VB.NET' skipped because there is no related file in current project
14:43:53.459 DEBUG: 'VB.NET File Caching Sensor' skipped because there is no related file in current project
14:43:53.459 DEBUG: 'VB.NET Tests Coverage Report Import' skipped because there is no related file in current project
14:43:53.460 DEBUG: '[Deprecated] VB.NET Integration Tests Coverage Report Import' skipped because there is no related file in current project
14:43:53.460 DEBUG: 'VB.NET Unit Test Results Import' skipped because there is no related file in current project
14:43:53.460 DEBUG: 'Java CPD Block Indexer' skipped because there is no related file in current project
14:43:53.461 DEBUG: Sensors : Import external issues report from SARIF file. -> Dependency-Check -> Analysis Warnings import -> Zero Coverage Sensor
14:43:53.461 INFO: Sensor Import external issues report from SARIF file.
14:43:53.461 DEBUG: Importing SARIF issues from '/var/vsts_agent/_work/178/drop/.gdn/msdo.sarif'
14:43:53.491 INFO: File /var/vsts_agent/_work/178/drop/.gdn/msdo.sarif: 1 run(s) successfully imported (1 vulnerabilities in total).
14:43:53.491 INFO: Sensor Import external issues report from SARIF file. (done) | time=30ms
14:43:53.491 INFO: Sensor Dependency-Check [dependencycheck]
14:43:53.492 INFO: Process Dependency-Check report
14:43:53.492 INFO: Using JSON-Reportparser
Before I throw in the towel on this, the file uri in your report is myrepo/src/main.js. What is sonar.sources set to in your analysis properties? Because if it’s set to src, then your file path should probably be main.js. (Also, I’m assuming main.js does exist in your project, right? )
You’re not setting sonar.sources, so it’s defaulting to .. Now… is .myrepo? I.e. is analysis running inside the directory named myrepo, or does it seemyrepo? Because the paths in your report need to match up to the paths analysis sees.
We have created a small reproducer based on the information you shared, and it works fine.
I have noticed that you run your analysis with the parameter sonar.branch.name=$(AppRepoBranch). Can you confirm that you are looking at the right branch in the SonarQube UI? In your screenshot, we can see master, but is it really the branch you analyze in Azure?
Can you also double-check that you don’t have any issue exclusion configured on this SonarQube project?
Here is the project we used as a reproducer: sarif-repro.zip (1.2 KB)
This is working perfectly fine for me. Therefore I am testing with the latest SonarQube build, so maybe there is an issue in the SARIF import that has been fixed in the past versions. Can you try upgrading to SonarQube 10.5?
Hello, apologies for the delayed response. I have upgraded to version 10.6, and it appears that was the issue. I am now able to view the imported content.