You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on the addin source code, it does not work with dotnet-sonarscanner package because it does not provide a begin and end command like Cake.Sonar addin does.
The official GitHub Action for doing a SoanrQube analysis in sonarcloud.io contains these steps:
- name: Install SonarCloud scanner
if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"project_key" /o:"organization" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
<your clean build command>
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"
I think a merge between this addin and the Cake.Sonar one to support both .NET core and .NET framework analysis along with nice and up2date SonarQube API parameters would be awesome.
Best,
Simo
The text was updated successfully, but these errors were encountered:
Hi all,
Based on the addin source code, it does not work with dotnet-sonarscanner package because it does not provide a begin and end command like Cake.Sonar addin does.
The official GitHub Action for doing a SoanrQube analysis in sonarcloud.io contains these steps:
I think a merge between this addin and the Cake.Sonar one to support both .NET core and .NET framework analysis along with nice and up2date SonarQube API parameters would be awesome.
Best,
Simo
The text was updated successfully, but these errors were encountered: