Skip to content

Commit

Permalink
Merge pull request #40 from microsoft/actions/disable-sonarcloud-chec…
Browse files Browse the repository at this point in the history
…k-forks

Disable runs for forks.
  • Loading branch information
SilasKenneth authored Jun 16, 2023
2 parents 5f5f6e7 + 0b4f983 commit df3493c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Fix code coverage paths
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage.xml
- name: SonarCloud Scan
if: ${{ matrix.php-versions == '8.0' }}
if: ${{ matrix.php-versions == '8.0' && !github.event.pull_request.head.repo.fork }}
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit df3493c

Please sign in to comment.