Skip to content

Commit

Permalink
Enabled SonarQube scanning for PRs (#5363)
Browse files Browse the repository at this point in the history
* Added scan workflow parameter for PR number to enable branch scanning

* Added missing backslash
  • Loading branch information
mandreko-bitwarden authored Feb 4, 2025
1 parent 0337300 commit b5cfb4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
/d:sonar.test.inclusions=test/,bitwarden_license/test/ \
/d:sonar.exclusions=test/,bitwarden_license/test/ \
/o:"${{ github.repository_owner }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \
/d:sonar.pullrequest.key=${{ github.event.pull_request.number }} \
/d:sonar.host.url="https://sonarcloud.io"
dotnet build
dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 comments on commit b5cfb4b

Please sign in to comment.