diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index d985255..aa25f06 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -32,6 +32,16 @@ jobs: dotnet tool install --global dotnet-sonarscanner echo "$HOME/.dotnet/tools" >> $GITHUB_PATH + - name: Debug token sanity check + run: | + curl -s -w "\nHTTP %{http_code}\n" \ + -u "${{ secrets.SONAR_TOKEN }}:" \ + "${{ secrets.SONAR_HOST_URL }}/api/plugins/installed" | head -5 + echo "---" + curl -s -w "\nHTTP %{http_code}\n" \ + -u "${{ secrets.SONAR_TOKEN }}:" \ + "${{ secrets.SONAR_HOST_URL }}/api/authentication/validate" + - name: SonarScanner Begin run: | dotnet sonarscanner begin \