diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index 20f6d7a..aaf1372 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -20,6 +20,8 @@ jobs: sonarqube: needs: build-server runs-on: ubuntu-latest + env: + PATH: ${{ env.HOME }}/.dotnet/tools:${{ env.PATH }} if: gitea.ref == 'refs/heads/master' steps: - uses: actions/checkout@v3 @@ -39,8 +41,7 @@ jobs: dotnet tool install --global dotnet-coverage - name: Sonarqube Begin run: | - export PATH="$PATH:/root/.dotnet/tools" - dotnet sonarscanner begin /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" + dotnet sonarscanner begin /key:"${{ secrets.SONAR_PROJECT_KEY }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" - name: Sonarqube Scan run: | dotnet build Server -c Release