Skip to content

Commit

Permalink
use powershell env variables to access the token
Browse files Browse the repository at this point in the history
  • Loading branch information
paule96 committed Sep 17, 2024
1 parent 5c813ff commit efd564e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit efd564e

Please sign in to comment.