# Sonarqube scan action - Failing

**URL:** <https://community.sonarsource.com/t/sonarqube-scan-action-failing/132336>\
**Category:** SonarQube Server / Community Build\
**Tags:** github-actions\
**Created:** [December 18, 2024, 9:02am UTC](https://community.sonarsource.com/t/sonarqube-scan-action-failing/132336 "2024-12-18T09:02:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpothan](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rpothan/32/65221_2.png) [@rpothan](https://community.sonarsource.com/u/rpothan)\
**Post date:** [December 18, 2024, 9:02am UTC](https://community.sonarsource.com/t/sonarqube-scan-action-failing/132336/1 "2024-12-18T09:02:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![antonio.aversa](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antonio.aversa/32/40757_2.png) [@antonio.aversa](https://community.sonarsource.com/u/antonio.aversa)\
**Post date:** [December 18, 2024, 9:15am UTC](https://community.sonarsource.com/t/sonarqube-scan-action-failing/132336/3 "2024-12-18T09:15:56Z")

</div>

Hi @rpothan,

We have just released a new version, [`v4.2.1`](https://community.sonarsource.com/t/the-new-release-of-github-action-for-sonarqube-v-4-2-server-and-cloud/132269), 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

---

<div class="post-metadata">

**Author:** ![rpothan](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/rpothan/32/65221_2.png) [@rpothan](https://community.sonarsource.com/u/rpothan)\
**Post date:** [December 18, 2024, 9:33am UTC](https://community.sonarsource.com/t/sonarqube-scan-action-failing/132336/4 "2024-12-18T09:33:48Z")

</div>

Hello Antonio,

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

Thanks for quick suggestion.

Regards,  
Radhakrishna

---

<div class="post-metadata">

**Author:** ![antonio.aversa](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antonio.aversa/32/40757_2.png) [@antonio.aversa](https://community.sonarsource.com/u/antonio.aversa)\
**Post date:** [December 18, 2024, 11:06am UTC](https://community.sonarsource.com/t/sonarqube-scan-action-failing/132336/5 "2024-12-18T11:06:21Z")

</div>

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?
