Avoids running Sonar scan in forks

This commit is contained in:
Lukasz Lenart
2024-11-18 16:06:58 +01:00
parent b1d7c09d02
commit c009a4ad1e
+1 -1
View File
@@ -31,7 +31,7 @@ jobs:
sonarcloud:
name: Scan
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.head.repo.fork }}
if: ${{ !github.event.pull_request.base.repo.fork || !github.event.pull_request.head.repo.fork }}
steps:
- uses: actions/checkout@v4
with: