From af1e69f424d23e392648cab94bdfe286b1ff2b38 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Wed, 1 Nov 2023 19:49:37 +0100 Subject: [PATCH] ci: again.... --- .gitea/workflows/server.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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