# SonarCloud PullRequest analysis not working

**URL:** <https://community.sonarsource.com/t/sonarcloud-pullrequest-analysis-not-working/127365>\
**Category:** SonarQube Cloud\
**Created:** [October 4, 2024, 9:51am UTC](https://community.sonarsource.com/t/sonarcloud-pullrequest-analysis-not-working/127365 "2024-10-04T09:51:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parasappa\_Yaragal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/parasappa_yaragal/32/30834_2.png) [@Parasappa\_Yaragal](https://community.sonarsource.com/u/Parasappa_Yaragal)\
**Post date:** [October 4, 2024, 9:51am UTC](https://community.sonarsource.com/t/sonarcloud-pullrequest-analysis-not-working/127365/1 "2024-10-04T09:51:54Z")

</div>

Hi,  
ALM: Github  
CI: Github Actions  
Scanner Command: maven and gradle commands  
Lang of repo: JAVA

Recently we have integrated sonarcloud for all our github repositories, we started observing for couple of repositories the pull request and branch analysis is not working other than master branch.  
All the projects uses same Github actions(we have our own re-usable GHA workflows for maven and gradle builds).  
I don’t see any error logs in my Github actions workflows.  
Could you please help us what could be the issue.  
Thanks  
Parasappa

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [October 7, 2024, 8:41am UTC](https://community.sonarsource.com/t/sonarcloud-pullrequest-analysis-not-working/127365/2 "2024-10-07T08:41:32Z")

</div>

Hey there.

Can you share your full GitHub Actions YML pipeline? Specifically it will be interesting to see the `triggers`.

---

<div class="post-metadata">

**Author:** ![Parasappa\_Yaragal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/parasappa_yaragal/32/30834_2.png) [@Parasappa\_Yaragal](https://community.sonarsource.com/u/Parasappa_Yaragal)\
**Post date:** [November 5, 2024, 11:48am UTC](https://community.sonarsource.com/t/sonarcloud-pullrequest-analysis-not-working/127365/3 "2024-11-05T11:48:32Z")

</div>

Hi @Colin,  
Please find attached workflow file and let me know if anything is missed to configure.

Thanks  
Parasappa

[build.yml.zip](https://community.sonarsource.com/uploads/short-url/kKrLytxQdKaKMstXvPkHCmKBeO4.zip) (1.1 KB)

---

<div class="post-metadata">

**Author:** ![Parasappa\_Yaragal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/parasappa_yaragal/32/30834_2.png) [@Parasappa\_Yaragal](https://community.sonarsource.com/u/Parasappa_Yaragal)\
**Post date:** [November 5, 2024, 1:03pm UTC](https://community.sonarsource.com/t/sonarcloud-pullrequest-analysis-not-working/127365/4 "2024-11-05T13:03:48Z")

</div>

Hi @Colin  
Adding more information what i had observed.  
When i run my github actions within Github Provided runners sonarcloud was able to process the pull request, however when i run the Github Actions Inside AWS Codebuild runners the pull request is not processed in the sonarcloud.  
What observe when running Github actions inside the code-build runners it shows below log.

```auto
Multiple CI environments were detected, disabling auto-configuration

```

And as per this [post](https://community.sonarsource.com/t/sonarqube-9-9-3-ee-multiple-ci-environments-are-detected-awscodebuild-github-actions/114446) i added autoconfig disable property, still the same issue i am facing.

Appreciate your help.

Thanks  
Parasappa

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [November 5, 2024, 8:26pm UTC](https://community.sonarsource.com/t/sonarcloud-pullrequest-analysis-not-working/127365/5 "2024-11-05T20:26:03Z")

</div>

That’s indeed helpful.

I think it would be helpful for you to run an `env` or `printenv` to dump the list of environment variables being used, to better understand what might be conflicting.

---

<div class="post-metadata">

**Author:** ![Parasappa\_Yaragal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/parasappa_yaragal/32/30834_2.png) [@Parasappa\_Yaragal](https://community.sonarsource.com/u/Parasappa_Yaragal)\
**Post date:** [November 6, 2024, 9:48am UTC](https://community.sonarsource.com/t/sonarcloud-pullrequest-analysis-not-working/127365/6 "2024-11-06T09:48:35Z")

</div>

Hi @Colin  
Below two env vars are conflicting with pull request analysis.

```auto
CODEBUILD_BUILD_ID
and 
CODEBUILD_START_TIME

```

With temporary fix, i’m unsetting these env’s before i run ` sonar` analysis and its working.

is there any plan to support AWS Codebuild as CI tool with SonarCloud?

Thanks  
Parasappa
