Skip to content

Commit

Permalink
Replace sonar.login by sonar.token in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Elanis committed Nov 25, 2023
1 parent 372ba1f commit f8a005c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
sudo apt install openjdk-11-jdk jq -y
- name: Start sonarscanner
run: dotnet sonarscanner begin /k:"${{ env.SONAR_KEY }}" /d:sonar.host.url="${{ env.SONAR_HOST_URL }}" /d:sonar.login="${{ env.SONAR_TOKEN }}" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.coverage.exclusions="**Test*.cs" /d:sonar.branch.name="${{github.ref_name}}"
run: dotnet sonarscanner begin /k:"${{ env.SONAR_KEY }}" /d:sonar.host.url="${{ env.SONAR_HOST_URL }}" /d:sonar.token="${{ env.SONAR_TOKEN }}" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.coverage.exclusions="**Test*.cs" /d:sonar.branch.name="${{github.ref_name}}"

- name: Set Version in csproj
if: startsWith(github.event.ref, 'refs/tags/')
Expand All @@ -59,7 +59,7 @@ jobs:
dotnet-coverage collect 'dotnet test --no-build --verbosity normal' -f xml -o 'coverage.xml'
- name: End sonarscanner
run: dotnet sonarscanner end /d:sonar.login="${{ env.SONAR_TOKEN }}"
run: dotnet sonarscanner end /d:sonar.token="${{ env.SONAR_TOKEN }}"

- name: Pack
run: dotnet pack ${{ env.CSPROJ }} -c Release -o out
Expand Down

0 comments on commit f8a005c

Please sign in to comment.