Skip to content

Commit

Permalink
ci(sonar): fix warning "The property 'sonar.login' is deprecated and …
Browse files Browse the repository at this point in the history
…will be removed in the future. Please use the 'sonar.token' property instead when passing a token."
  • Loading branch information
skwasjer committed Aug 26, 2023
1 parent af9182d commit f0e4761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
dotnet sonarscanner begin /k:"$SONAR_PROJECT_KEY" /o:"$SONAR_ORG_KEY" /d:sonar.host.url=https://sonarcloud.io /d:sonar.login="$SONAR_TOKEN" /d:sonar.cs.opencover.reportsPaths="**/*opencover.xml" $SONAR_PR_ARGS
dotnet sonarscanner begin /k:"$SONAR_PROJECT_KEY" /o:"$SONAR_ORG_KEY" /d:sonar.host.url=https://sonarcloud.io /d:sonar.token="$SONAR_TOKEN" /d:sonar.cs.opencover.reportsPaths="**/*opencover.xml" $SONAR_PR_ARGS
dotnet test -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:ExcludeByFile="test/**/*.cs"
dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"
dotnet sonarscanner end /d:sonar.token="$SONAR_TOKEN"

0 comments on commit f0e4761

Please sign in to comment.