Skip to content

Commit

Permalink
Issue #ED-4414 fix: updated sonar file, reading specific branches
Browse files Browse the repository at this point in the history
  • Loading branch information
vpPavithra committed Jun 20, 2024
1 parent 4401cb8 commit ba0beb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ jobs:
run: sudo npm install -g sonarqube-scanner@3.5.0

- name: Print SONAR_TOKEN
run: echo "SONAR_TOKEN=${{ secrets.SONAR_TOKEN }}PWR****123"
run: echo "SONAR_TOKEN=${{ secrets.SONAR_TOKEN }}PWR****123-${{ github.event.pull_request.number }}-${{ github.head_ref }}"

- name: Run SonarQube Analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner \
-Dsonar.login=$SONAR_TOKEN
-Dsonar.login=$SONAR_TOKEN
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
-Dsonar.pullrequest.branch=${{ github.head_ref }}

0 comments on commit ba0beb7

Please sign in to comment.