I’m trying to understand the behavior difference between branch analysis and pull request (PR) analysis when importing dependency vulnerability reports.
Setup
SonarQube Server: 2026.1
Edition: Developer Edition
Mode: MQR
Scanner:sonar-scanner
CI: Concourse
Dependency scanning: JFrog (jf audit)
Report format: SARIF
What I’m doing
I run jf audit --mvn=true --format=sarif > target/dependency-check-report.sarif as part of the pipeline to scan source code dependencies.
The scan generates a SARIF file with CVEs.
Use a script to post‑process the generated SARIF file and make it compliant with SonarQube’s supported SARIF format before running the SonarScanner analysis.
PR analysis does not show any dependency vulnerabilities at all (no issues in PR decoration, no dependency‑related issues visible).
There are no errors in the scanner logs; the SARIF file is detected, but the issues simply don’t appear in the PR.
Question
Why does SonarQube allow importing dependency vulnerabilities (via SARIF) in branch analysis, but not show them in pull request analysis, even though the same scanner configuration is used?
Is this:
An expected limitation of PR analysis?
A restriction related to external issues / SARIF in PRs?
Expectation
I’m not trying to use Sonar’s built‑in SCA (I understand that requires Enterprise + Advanced Security).
I’m simply trying to understand why external dependency vulnerabilities can be visible on branches but cannot be surfaced in PR analysis, and whether that is a design decision or a documented limitation.
Any clarification from the Sonar team would be appreciated.
Thanks for this run-down. The last commit date on your pom is from last July. I guess this isn’t a screenshot of your actual branch?
And does your pom show up as ‘new’ in your PR?
I was about to ask you to set sonar.maven.scanAll to true rather than explicitly specifying sonar.sources when I realized which scanner you’re using. Can you share why you’re analyzing with sonar-scanner instead of SonarScanner for Maven?
We are using emeraldsquad/sonar-scanner docker image in this concourse task. There is no special reason why we are using sonar-scanner instead of SonarScanner for Maven.
Yes, pom file show up as new in the PR. I have already provided the screenshot of it in the previous reply. And it shows the new line count as 8. But did not show up the dependency.
And PR’s target branch was already analyzed with another pipeline we used for branch analysis. And dependency scanning works fine there.
I tried using SonarScanner for Maven & still the issue persists. Also can see below in pipeline output (Branch Analysis has 41 vulnerabilities and PR Analysis has 42 vulnerabilities).
“SCA and Advanced SAST with Advanced Security” is unavailable in SonarQube Developer edition and in Enterprise edition also it come up as an add on. Can this be the problem that we are facing?
In a PR, SonarQube only shows issues on the new code of the PR. So an imported finding may be hidden, depending on where exactly the finding is anchored. A SARIF result with no region, or a region that doesn’t land on any of your 8 added lines, is a likely cause.
Two things would help confirm:
Could you paste one of the findings from your post-processed updated-dependency-check-report.sarif? Specifically a results[] entry with its locations[0].physicalLocation block, so we can see what region, if any, the imported issues carry?
On the branch view, could you open one of the vulnerabilities that’s missing from the PR and check whether it shows a line number on pom.xml, or whether it’s anchored to the file with no line?