A GitHub Workflow that worked fine 3 weeks ago, now doesn't work #210833
🏷️ Discussion TypeQuestion 💬 Feature/Topic AreaActions Runner Discussion DetailsI've got a simple Blazor application I created a while ago, using the Visual Studio Blazor Web App project template. I did nothing with it, except create the app. I was interested in learning how SonarQube would work in our environment. (We have a GitHub Self-Hosted Runner on one of our Windows Servers.) This worked perfectly 3 weeks ago. Today I wanted to add Dependabot alerts, (Dependency Graph is added), and Malware alerts. I did nothing else; all of this was done in the repo's Settings. However, now when I try to run the workflow it fails. Here's a snippet from the log which I ran with debugging:
The only difference I've been able to find on the SonarQube server is 3 weeks ago it was at SonarScanner for .NET 11.3. Now it is at SonarScanner for .NET 12.0. What could be causing this change in behavior? |
Replies: 2 comments 3 replies
|
The root cause is shown directly in the pre-processor warning and HTTP status in your log: Why This Happened
How to Fix
|
|
The 403 error you are seeing during the Since you mentioned this worked perfectly 3 weeks ago, the most likely culprit is that the token has simply expired (SonarQube tokens often have a default 30-day expiration limit), or the permissions on the SonarQube project were accidentally modified. Here is how you can resolve this:
The upgrade to SonarScanner 12.0 is likely just a coincidence regarding the timing of the token expiring, though newer versions sometimes surface HTTP errors a bit more explicitly. Swap that token out and your workflow should be back to normal! |
The 403 error you are seeing during the
beginstep is almost certainly an authentication or permissions issue with yourSONAR_TOKEN, rather than a bug in the 12.0 scanner update. The scanner is trying to reach out to your SonarQube server to download the project's configuration, and the server is actively rejecting the request.Since you mentioned this worked perfectly 3 weeks ago, the most likely culprit is that the token has simply expired (SonarQube tokens often have a default 30-day expiration limit), or the permissions on the SonarQube project were accidentally modified.
Here is how you can resolve this: