Skip to content

Commit

Permalink
fix(sonar-dotnet): sonar version expects login not token argument (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
JossWhittle authored Nov 14, 2024
1 parent 0a4b170 commit cf9d6dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sonar-dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:
dotnet /sonar-scanner/SonarScanner.MSBuild.dll begin \
/k:$PROJECT_NAME /name:$PROJECT_NAME \
/d:sonar.host.url=$SONAR_URL \
/d:sonar.token=$SONAR_TOKEN && \
/d:sonar.login=$SONAR_TOKEN && \
dotnet restore $PROJECT_FILE && \
dotnet build $PROJECT_FILE -c Release && \
dotnet /sonar-scanner/SonarScanner.MSBuild.dll end \
/d:sonar.token=$SONAR_TOKEN"
/d:sonar.login=$SONAR_TOKEN"
env:
SONAR_IMAGE: harbor.ukserp.ac.uk/github-workflows/dotnet-sonar:23.06.4-r2
PROJECT_NAME: ${{ inputs.project-name }}
Expand Down

0 comments on commit cf9d6dc

Please sign in to comment.