Skip to content

Commit e887c9e

Browse files
committed
Skip sonar for PR from fork
Signed-off-by: Tony Xiang <[email protected]> Signed-off-by: Tony Xiang <[email protected]>
1 parent ea0a4b3 commit e887c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/sonar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
9292
- name: Run sonar-scanner
9393
# only run sonar server in push event or pull request event from own repo
94-
if: github.event_name == 'push' || ${{ github.event.pull_request.head.repo.owner.login }} == 'alliander-opensource'
94+
if: ${{ (github.event_name == 'push') || (github.event.pull_request.head.repo.owner.login == 'alliander-opensource') }}
9595
env:
9696
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9797
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)