Skip to content

Commit

Permalink
ci(github-actions): specify more pull request args to sonarcloud (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuaro committed Jan 4, 2024
1 parent 332ef33 commit 25cc8ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ jobs:
- name: SonarCloud Scan ☁️
uses: sonarsource/sonarcloud-github-action@v2.1.1
with:
args: -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
args: >
-Dsonar.pullrequest.provider=github
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{github.event.pull_request.head.repo.owner.login}}:$PR_HEAD_REF
-Dsonar.pullrequest.github.repository=${{ github.event.pull_request.base.repo.full_name }}
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit 25cc8ca

Please sign in to comment.