Sonarqube scan action - Failing

Hello Team,

Need your help here.

I have noticed certificate errors with v4.0.0 version.
Adding SSL certificate to the Scanner truststore
keytool error: java.lang.Exception: Certificate not imported, alias already exists

Error: Process completed with exit code 1.

Hence, time being I have reverted my configuration to

  - name: Run SonarQube analysis
    uses: sonarsource/sonarqube-scan-action@v3.1.0

Could you help me how to resolve this certificate issue?

Regards,
Radhakrishna P

Hi @rpothan,

We have just released a new version, v4.2.1, that should address issues with certificates.

Can you try to update your GitHub workflow from v4.0.0 to v4.2.1?

If that doesn’t solve your issue, could you please share the logs of the execution of the GitHub action?

It would also be useful if you could share your workflow (or at least the relevant parts) and to know whether you use self-hosted GitHub runners to run the analysis.

Thanks,
Antonio

Hello Antonio,

Now I have tried with v4.2.1 and it worked.

Thanks for quick suggestion.

Regards,
Radhakrishna

1 Like

Thanks for confirming, that’s great news!

Just to better understand the scenario, would you confirm you are using GitHub self-hosted runners, and the temporary directory of your runner (RUNNER_TEMP) is not cleaned between executions of the GitHub action?