# Sonar Cloud Scan for Github Action doesn't work (version 1.5)

**URL:** <https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224>\
**Category:** SonarQube Cloud\
**Tags:** sonarqube-cloud\
**Created:** [February 6, 2021, 9:37pm UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224 "2021-02-06T21:37:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![stockiNail](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/stockinail/32/10506_2.png) [@stockiNail](https://community.sonarsource.com/u/stockiNail)\
**Post date:** [February 6, 2021, 9:37pm UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/1 "2021-02-06T21:37:05Z")

</div>

I’m using GitHub action to build and check my JAVA project.

I have tried to pass to last version of [SonarSource](https://github.com/SonarSource) / **[sonarcloud-github-action](https://github.com/SonarSource/sonarcloud-github-action)**, version [1.5](https://github.com/SonarSource/sonarcloud-github-action/releases/tag/v1.5) but I got the following error:

```
Could not find 'java' executable in JAVA_HOME or PATH.

```

I have changed the version, going back to 1.4 and it works.

UPDATE: here is the GitHub action execution log: [update sonarcloud GHA application version · pepstock-org/Charba@7ba1621 · GitHub](https://github.com/pepstock-org/Charba/runs/1846431049?check_suite_focus=true)

---

<div class="post-metadata">

**Author:** ![jayfray12](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jayfray12/32/19726_2.png) [@jayfray12](https://community.sonarsource.com/u/jayfray12)\
**Post date:** [February 24, 2021, 8:54pm UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/3 "2021-02-24T20:54:50Z")

</div>

I’m seeing the same exact thing. 1.4 works but 1.5 fails.

---

<div class="post-metadata">

**Author:** ![TomVanBraband](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tomvanbraband/32/46480_2.png) [@TomVanBraband](https://community.sonarsource.com/u/TomVanBraband)\
**Post date:** [February 25, 2021, 7:18am UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/4 "2021-02-25T07:18:05Z")

</div>

Hello @stockiNail and @jayfray12, thanks for the bug report.

I was able to replicate the behaviour you specified. This behaviour is only observed when the GitHub actions pipeline sets the `JAVA_HOME` variable prior to executing the SonarCloud action. (This is done by the ‘Set-up JDK’ step [in the set-up](https://github.com/pepstock-org/Charba/blob/776121dd792ae916ce549383218a51fa1ad5fce0/.github/workflows/build.yaml#L39) @stockiNail shared).

We will be releasing a bugfix for this soon. I’ll notify you in this thread when it is released.

---

<div class="post-metadata">

**Author:** ![stockiNail](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/stockinail/32/10506_2.png) [@stockiNail](https://community.sonarsource.com/u/stockiNail)\
**Post date:** [February 25, 2021, 1:22pm UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/5 "2021-02-25T13:22:31Z")

</div>

Thank you very much!!

---

<div class="post-metadata">

**Author:** ![stockiNail](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/stockinail/32/10506_2.png) [@stockiNail](https://community.sonarsource.com/u/stockiNail)\
**Post date:** [April 12, 2021, 3:24pm UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/6 "2021-04-12T15:24:55Z")

</div>

@TomVanBraband any feedback?

---

<div class="post-metadata">

**Author:** ![TomVanBraband](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/tomvanbraband/32/46480_2.png) [@TomVanBraband](https://community.sonarsource.com/u/TomVanBraband)\
**Post date:** [April 13, 2021, 7:40am UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/7 "2021-04-13T07:40:52Z")

</div>

Hi @stockiNail,

Thanks for the reminder and apologies for the delay. You can now use version `v1.6`. Please let me know if this version resolves your issues!

---

<div class="post-metadata">

**Author:** ![stockiNail](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/stockinail/32/10506_2.png) [@stockiNail](https://community.sonarsource.com/u/stockiNail)\
**Post date:** [April 13, 2021, 8:39am UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/8 "2021-04-13T08:39:20Z")

</div>

Fine! I’m gonna use in the next days and provide here my feedback.

Thank you!

---

<div class="post-metadata">

**Author:** ![stockiNail](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/stockinail/32/10506_2.png) [@stockiNail](https://community.sonarsource.com/u/stockiNail)\
**Post date:** [April 13, 2021, 1:30pm UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/9 "2021-04-13T13:30:13Z")

</div>

Tested and it works with 1.6. Thanks a lot again

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [April 20, 2021, 1:30pm UTC](https://community.sonarsource.com/t/sonar-cloud-scan-for-github-action-doesnt-work-version-1-5/38224/10 "2021-04-20T13:30:22Z")

</div>

Closed on April 20, 2021, 1:30pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
