Error: "security" branch has not been analyzed yet

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

I’m trying to implement sonar scan from github-actions pipelines and even thought the scan is completed I’m not seeing any reports in the dashboard of Sonar

Below is the error:

“security” branch has not been analyzed yet.

I have sonar in EKS as deployment and using “sonarqube:2025-lta-enterprise” Image

can any help me on this

Hi,

Welcome to the community!

Can you share your full analysis log, please?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann

Hi,

Thanks for the reply

I can’t share the report but the problem is in the pipeline the sonar scan job completed successfully, but in the sonar UI it is showing the below error

“master” branch has not been analyzed yet and you have multiple branches already. It looks like it is not your Main Branch, check your configuration.

If I’m selecting another branch [this branch is showing up only once the scan is successful from pipeline]

“security” branch has not been analyzed yet.

Below is my step:

  • name: SonarQube Scan
    run: |
    sonar-scanner
    -Dsonar.projectKey=“${{ needs.get_environment_name_from_git_ref.outputs.repo_name }}”
    -Dsonar.host.url=“https://sonarqube.beta.com
    -Dsonar.token=“${{ secrets.SONAR_TOKEN }}”
    -Dsonar.sources=.
    -Dsonar.exclusions=“/test/,/node_modules/
    -Dsonar.sourceEncoding=UTF-8
    -Dsonar.verbose=true

Attaching the SS of some part of the scan report from pipeline

please check and provide the necessary input to do the need ful

Thanks & Regards
Tarun P

Hi Tarun,

Feel free to redact the logs as necessary.

 
Ann

Hi,

There are morethan 20k+ lines of logs from the pipeline, so I have shared some those, were those helpful?

Any suggestions to fix the issue, or is this related something with licence, please check and provide me a suggestion

Thanks & Regards
Tarun P

Hi Tarun,

I don’t see any logs in this thread.

 
Ann