Issues connecting to self-signed SonarQube Server with GitLab CI using SonarScanner image

We are currently facing an issue connecting to our self-signed SonarQube Instance when called from our GitLab CI pipeline.
The SonarScanner image has reported that it was unable to find valid certification path to requested target.

Setup:

  • SonarQube Server deployed via Docker: 2025.1.0-developer
  • SonarScannerCLI Image Version: 5.0, 10.0, 11.0
  • GitLab Runner deployed via Docker: v15.7.1

May I know how can I resolve it?
Thanks.

Hey there

This user adding a before_script seems like good advice.