Skip to content

Commit

Permalink
Merge pull request #15 from brenordv/feature/update-sonar-pipeline
Browse files Browse the repository at this point in the history
Replaced sonar.login (deprecated) with sonar.token.
  • Loading branch information
brenordv authored Feb 5, 2024
2 parents 4001c74 + 5fa6e7a commit 869386f
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 869386f

Please sign in to comment.