Skip to content

Commit 53f7397

Browse files
Add concurrency
1 parent 51fbd81 commit 53f7397

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/sonar-trigger.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
types:
88
- completed
99

10+
concurrency:
11+
group: trigger-sonar-${{ github.event.workflow_run.head_branch }}
12+
cancel-in-progress: true
13+
1014
permissions:
1115
contents: read
1216

@@ -23,6 +27,7 @@ jobs:
2327
name: Trigger Sonar analysis
2428
uses: WrenSecurity/.github/.github/workflows/sonar-maven.yml@main
2529
with:
30+
commit_sha: ${{ github.event.workflow_run.head_sha }}
2631
java_version: 17
2732
project_key: 'WrenSecurity_wrenicf-java-framework'
2833
pull_request: ${{ needs.prepare.outputs.pull_request }}

0 commit comments

Comments
 (0)