Skip to content

Commit

Permalink
Replaced sonar.login (deprecated) with sonar.token.
Browse files Browse the repository at this point in the history
  • Loading branch information
Breno RdV committed Feb 5, 2024
1 parent 4001c74 commit 5fa6e7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/template-qa-sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
$sonarExclusions = "${{ inputs.sonarExclusions }}"
$coverageExclusions = "${{ inputs.coverageExclusions }}"
$sonarBeginCmd = ".\.sonar\scanner\dotnet-sonarscanner begin /k:`"${{ inputs.projectKey }}`" /o:`"${{ inputs.organization }}`" /d:sonar.login=`"${{ secrets.sonarToken }}`" /d:sonar.host.url=`"https://sonarcloud.io`" /d:`"sonar.verbose=$verboseFlag`" /d:sonar.cs.vscoveragexml.reportsPaths=`"coverage.xml`""
$sonarBeginCmd = ".\.sonar\scanner\dotnet-sonarscanner begin /k:`"${{ inputs.projectKey }}`" /o:`"${{ inputs.organization }}`" /d:sonar.token=`"${{ secrets.sonarToken }}`" /d:sonar.host.url=`"https://sonarcloud.io`" /d:`"sonar.verbose=$verboseFlag`" /d:sonar.cs.vscoveragexml.reportsPaths=`"coverage.xml`""
if (-not [string]::IsNullOrWhiteSpace($sonarExclusions)) {
$sonarBeginCmd += " /d:`"sonar.exclusions=$sonarExclusions`""
}
Expand All @@ -104,4 +104,4 @@ jobs:
Invoke-Expression $sonarBeginCmd
dotnet build --configuration Release
dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml'
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.sonarToken }}"
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.sonarToken }}"

0 comments on commit 5fa6e7a

Please sign in to comment.