From efd564e8ba21d04c3c82b36c19804b7f2f7fec8f Mon Sep 17 00:00:00 2001 From: paule96 Date: Tue, 17 Sep 2024 17:56:15 +0000 Subject: [PATCH] use powershell env variables to access the token --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 41aac50e..90d9200f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,7 @@ jobs: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} shell: pwsh run: | - ./.sonar/scanner/dotnet-sonarscanner begin /k:"valdisiljuconoks_LocalizationProvider" /o:"valdisiljuconoks" /d:sonar.token='${{ secrets.SONAR_TOKEN }}' /d:sonar.host.url="https://sonarcloud.io" + ./.sonar/scanner/dotnet-sonarscanner begin /k:"valdisiljuconoks_LocalizationProvider" /o:"valdisiljuconoks" /d:sonar.token=$env:SONAR_TOKEN /d:sonar.host.url="https://sonarcloud.io" dotnet build dotnet test --filter Category!=Integration /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=coverage - ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token='${{ secrets.SONAR_TOKEN }}' + ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token=$env:SONAR_TOKEN