# SonarCloud not detecting/scanning PRs on private repos

**URL:** <https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411>\
**Category:** SonarQube Cloud\
**Tags:** sonarqube-cloud, autoscan, scanner\
**Created:** [July 10, 2023, 4:22pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411 "2023-07-10T16:22:07Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![khorwood](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/khorwood/32/40016_2.png) [@khorwood](https://community.sonarsource.com/u/khorwood)\
**Post date:** [July 10, 2023, 4:22pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/1 "2023-07-10T16:22:07Z")

</div>

- ALM used: GitHub
- CI system used: GitHub Actions
- Scanner: SonarCloud Automated Analysis
- Languages of the repository: TypeScript/JavaScript
- Error observed: New PRs not displayed in SonarCloud Pull Requests, but a pending check is listed in GitHub for SonarCloud
- Steps to reproduce: Random, open a PR
- Workarounds: add an empty commit to the PR

Over the last week or so we have been seeing long delays or no attempts in SonarCloud to scan new pull requests. As this is a required step of our SDLC this is becoming a friction point for our developers.  
Can you determine why we are seeing pull requests get ignored at random by SonarCloud?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [July 11, 2023, 3:40pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/2 "2023-07-11T15:40:19Z")

</div>

Hi,

Can you post or point to the analysis logs or the logs up to the point that analysis stalls / doesn’t happen?

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![khorwood](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/khorwood/32/40016_2.png) [@khorwood](https://community.sonarsource.com/u/khorwood)\
**Post date:** [July 12, 2023, 2:51pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/3 "2023-07-12T14:51:13Z")

</div>

I can try to get some screenshots from GitHub to illustrate. There are no errors or logs, we’re just seeing new pull requests sometime take hours to appear in SonarCloud and/or receive scan results.  
I have some teams migrating to GitHub Actions instead of the Automatic Analysis method in order to unblock their work.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [July 12, 2023, 2:53pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/4 "2023-07-12T14:53:52Z")

</div>

Hi,

To be clear, are you seeing these delays with automatic analysis or on GH Actions?

&nbsp;  
Ann

---

<div class="post-metadata">

**Author:** ![khorwood](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/khorwood/32/40016_2.png) [@khorwood](https://community.sonarsource.com/u/khorwood)\
**Post date:** [July 12, 2023, 3:06pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/5 "2023-07-12T15:06:06Z")

</div>

We’re seeing the delays randomly when using Automatic Analysis.  
Thanks for looking into this.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [July 12, 2023, 6:29pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/6 "2023-07-12T18:29:26Z")

</div>

Hi,

Thanks for the details. Can you provide some dates/times when you saw slowness so that we can correlate to what was or was not going on on our end?

&nbsp;  
Thx,  
Ann

---

<div class="post-metadata">

**Author:** ![Daniel\_Norton](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/daniel_norton/32/37656_2.png) [@Daniel\_Norton](https://community.sonarsource.com/u/Daniel_Norton)\
**Post date:** [July 12, 2023, 11:17pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/8 "2023-07-12T23:17:01Z")

</div>

I’m having the same issue on my private repositories. I noticed in my PRs list they stopped yesterday (well, I guess this morning - the last PR analysis was at 2:14 AM EST on July 12.) We have had 4 PRs since then, and none of them show up in the PR list. They also do not show up in pending list.

---

<div class="post-metadata">

**Author:** ![steven.johnson](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/steven.johnson/32/44384_2.png) [@steven.johnson](https://community.sonarsource.com/u/steven.johnson)\
**Post date:** [July 13, 2023, 12:20pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/9 "2023-07-13T12:20:28Z")

</div>

Hi All - we are currently investigating this issue. Yesterday we met with SonarCloud user Chris Johnson and he gave us some helpful repro steps. Today we hope to diagnose it and update you as soon as we can.

---

<div class="post-metadata">

**Author:** ![Daniel\_Norton](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/daniel_norton/32/37656_2.png) [@Daniel\_Norton](https://community.sonarsource.com/u/Daniel_Norton)\
**Post date:** [July 27, 2023, 3:28pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/11 "2023-07-27T15:28:33Z")

</div>

We are seeing this behavior again in our private repos in Github. The last PR that was scanned was 18 hours ago. What was the root cause of the problem last time?

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [July 27, 2023, 4:42pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/12 "2023-07-27T16:42:41Z")

</div>

Hi,

Thanks for your report. It helped us find this:

[https://community.sonarsource.com/t/automatic-analysis-slowdown-processing-github-prs/96466](https://community.sonarsource.com/t/automatic-analysis-slowdown-processing-github-prs/96466)

You should see this start to get better soon, with full resolution by, let’s say mid-morning in Europe.

&nbsp;  
Thx,  
Ann

---

<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:** [July 28, 2023, 9:20am UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/13 "2023-07-28T09:20:06Z")

</div>

[https://community.sonarsource.com/t/automatic-analysis-slowdown-processing-github-prs/96466/2?u=colin](https://community.sonarsource.com/t/automatic-analysis-slowdown-processing-github-prs/96466/2)

---

<div class="post-metadata">

**Author:** ![jb1](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/jb1/32/47733_2.png) [@jb1](https://community.sonarsource.com/u/jb1)\
**Post date:** [July 28, 2023, 5:06pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/14 "2023-07-28T17:06:14Z")

</div>

We have a similar problem where SonarCloud has not been detecting/scanning PRs on our private repo with automated analysis.

Just created two new PRs over 1 hour ago and they have not been scanned yet.

It appears that this issue is not fully resolved.

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [July 28, 2023, 6:10pm UTC](https://community.sonarsource.com/t/sonarcloud-not-detecting-scanning-prs-on-private-repos/95411/15 "2023-07-28T18:10:33Z")

</div>

Hi @jb1,

Welcome to the community!

Thanks for joining the conversation. The SRE on duty just double-checked, and the backlog is cleared. So it seems your problem is unrelated.

Can you create a new thread and provide all your details, please?

&nbsp;  
Thx,  
Ann
