Skip to content

Commit 85bf20c

Browse files
Merge pull request #924 from splitio/sonar-scan-update
Skip SonarQube scan on fork PRs
2 parents 0eed008 + 36a29f4 commit 85bf20c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/sonar-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
-Dsonar.links.scm="https://github.com/splitio/${{ github.event.repository.name }}"
5050
5151
- name: SonarQube Scan (Pull Request)
52-
if: github.event_name == 'pull_request'
52+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
5353
uses: SonarSource/sonarqube-scan-action@v6
5454
env:
5555
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}

0 commit comments

Comments
 (0)