File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,11 +31,10 @@ jobs:
3131
3232 - name : Sonarqube Begin
3333 env :
34- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
3534 SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
3635 run : |
3736 dotnet tool install --global dotnet-sonarscanner
38- dotnet sonarscanner begin /k:"STARIONGROUP_EcoreNetto" /o:"stariongroup" /d:sonar.token="${{ secrets. SONAR_TOKEN }} " /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./CoverageResults/coverage.opencover.xml"
37+ dotnet sonarscanner begin /k:"STARIONGROUP_EcoreNetto" /o:"stariongroup" /d:sonar.token="$SONAR_TOKEN" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="./CoverageResults/coverage.opencover.xml"
3938
4039 - name : Build
4140 run : dotnet build --no-restore /p:ContinuousIntegrationBuild=true
4443 run : dotnet test EcoreNetto.sln --no-restore --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutput="../CoverageResults/" /p:MergeWith="../CoverageResults/coverage.json" /p:CoverletOutputFormat=\"opencover,json\"
4544
4645 - name : Sonarqube end
47- run : dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
4846 env :
49- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48+ run : dotnet sonarscanner end /d:sonar.login="$GITHUB_TOKEN"
You can’t perform that action at this time.
0 commit comments