Skip to content

Commit

Permalink
chore: prevent Sonarcloud from running on forks (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
JenniferMah authored Jan 12, 2022
1 parent d712935 commit 2b68bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: make test

- name: Install SonarCloud scanner and run analysis
if: ${{ github.event_name == 'pull_request' || github.ref_type == 'branch' }}
if: ${{ github.event_name == 'pull_request' || github.ref_type == 'branch' && !github.event.pull_request.head.repo.fork }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit 2b68bfa

Please sign in to comment.