Closed hnrkdmsk closed 4 years ago
Can you confirm if this is github.com, or Github server and - if it's server - what the version number is please?
It's github.com.
I suspect https://developer.github.com/v3/#pagination is causing issues. All my tests cases have been against organisations/users with a low number of repositories which is why I wouldn't have seen this. The code isn't checking for the rel
link for retrieving paginated data, so will be treating the first page as the full list of repositories and therefore ignoring any repository listed on subsequent pages.
The only work-around I can see for now is specifying a small list of repositories that the application is allowed to access as per your current approach.
This is also an issue for our case, where we have ~600 repos in our org, and we'd like to scan all of them :)
Are either of you able to install a snapshot build to test with if I manage to create an appropriate fix? I could try and create lots of repositories just for testing, but a real-world test would be preferable.
@mc1arke Sure thing!
I'm having the same issue I think, happy to help testing as well.
I've pushed a proposed fix to issue/103. Could one of you build and install from that branch and see if it allow for your repository to be found when allowing access to all your repositories in the application configuration?
I have tested it and now it works fine in my case!
:+1: here.. works with latest fix
Thanks for testing. I'll get an MR containing that change raised and merged later today if possible.
Hey, sorry to bother... but... any news on this? Anything I can do to help?
Hey, sorry to bother... but... any news on this? Anything I can do to help?
You can checkout the https://github.com/mc1arke/sonarqube-community-branch-plugin/tree/issue/103 and build it locally. With this fix it works fine!
If anyone else needs it, built: https://jars.caarlos0.dev/sonarqube-community-branch-plugin-1.3.1-SNAPSHOT.jar
Released in version 1.3.1
Describe the bug I got the following exception if I have configured my app to have access to all my repositories and also new created ones. If I configure it to have access only to specific ones, no error occurs.
My organization has 60+ repositories.
To Reproduce Configure your GitHub Application to have access to all repositories and new created ones.
Expected behavior That the error not occurs.
Screenshots
Software Versions
Additional context Add any other context about the problem here.