I would suggest a Global Setting to change the Pull Request Provider and Personal Access Token.
I didn’t find a way to manage this setting globally so we had to set it on each of our (currently) 120 Projects and when the Personal Access Token runs out (it is only valid for 1 year) we would have to update all 120 Projects.
Is there an automation we could use? How do you suggest we handle this issue?
I just found a StackOverflow post that brought an idea to my mind. Is it possible to set these properties
sonar.pullrequest.provider
sonar.pullrequest.vsts.token.secured
on each build through the extra properties attribute on Prepare Analysis? This might be great solution for us.
[…]
Several properties could be set at analysis time: sonar.pullrequest.provider, sonar.pullrequest.github.repository. As a baby step, we will gather them at project level only. Technical note: similarly to file exclusions, it could be overridden at analysis time. It’d need to be stored in relation to a branch (ex: project_branches database table.).
[…]