diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index f648abd..4bfeae6 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -42,14 +42,6 @@ jobs: curl -s -u "$TOKEN:" "$HOST/api/authentication/validate" echo - - name: SonarScanner Begin - run: | - dotnet sonarscanner begin \ - /k:"sql-utilities" \ - /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" \ - /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ - /d:sonar.exclusions="**/bin/**,**/obj/**" - - name: Token Fingerprint env: TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -58,6 +50,14 @@ jobs: echo -n "$TOKEN" | sha256sum echo -n "$TOKEN" | xxd | tail -3 + - name: SonarScanner Begin + run: | + dotnet sonarscanner begin \ + /k:"sql-utilities" \ + /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" \ + /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ + /d:sonar.exclusions="**/bin/**,**/obj/**" + - name: Build run: dotnet build Strata.SqlTools.QueryBreakdown.sln --configuration Release