Skip to content

Commit def0ca4

Browse files
authored
ci: Disable Sonar if PR comes from a fork (#1606)
1 parent a29e311 commit def0ca4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/sonar.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
build:
1010
name: Build
1111
runs-on: ubuntu-22.04
12+
# Sonar Token can't be passed to PRs from forks. Disable Sonar workflow unless PR is from a branch.
13+
if: github.event.pull_request.head.repo.full_name == github.repository
1214
steps:
1315
- uses: actions/checkout@v4
1416
with:

0 commit comments

Comments
 (0)