Skip to content

Commit

Permalink
ci: add sonar pull request analysis parameters
Browse files Browse the repository at this point in the history
Signed-off-by: BAStos525 <[email protected]>
  • Loading branch information
BAStos525 committed Sep 25, 2024
1 parent 5b52a58 commit 29e683f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/iroha2-dev-sonar-dojo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
image: hyperledger/iroha2-ci:nightly-2024-09-09
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name }}
ref: ${{ github.event.workflow_run.pull_requests[0].head.ref }}
fetch-depth: 0
- name: Download clippy and lcov artifact reports
uses: actions/download-artifact@v4
with:
Expand All @@ -33,6 +37,9 @@ jobs:
args: >
-Dcommunity.rust.clippy.reportPaths=lints/clippy.json
-Dcommunity.rust.lcov.reportPaths=lints/lcov.info
-Dsonar.pullrequest.key=${{ github.event.workflow_run.pull_requests[0].number }}
-Dsonar.pullrequest.base=${{ github.event.workflow_run.pull_requests[0].base.ref }}
-Dsonar.pullrequest.branch=${{ github.event.workflow_run.pull_requests[0].head.ref }}
- name: DefectDojo
id: defectdojo
uses: C4tWithShell/[email protected]
Expand Down

0 comments on commit 29e683f

Please sign in to comment.