Skip to content

Commit c009a4a

Browse files
committed
Avoids running Sonar scan in forks
1 parent b1d7c09 commit c009a4a

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
@@ -31,7 +31,7 @@ jobs:
3131
sonarcloud:
3232
name: Scan
3333
runs-on: ubuntu-latest
34-
if: ${{ !github.event.pull_request.head.repo.fork }}
34+
if: ${{ !github.event.pull_request.base.repo.fork || !github.event.pull_request.head.repo.fork }}
3535
steps:
3636
- uses: actions/checkout@v4
3737
with:

0 commit comments

Comments
 (0)