Skip to content

Commit

Permalink
ci: disable sonarcloud on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
coderkalyan committed Dec 4, 2021
1 parent b68591a commit 0a7c453
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ jobs:

sonarcloud:
runs-on: ubuntu-latest
# don't run sonarcloud on builds originating from forks
# due to secrets not being available
if: github.actor == 'repo-owner'
env:
SONAR_SCANNER_VERSION: 4.6.1.2450
SONAR_SERVER_URL: "https://sonarcloud.io"
Expand Down

0 comments on commit 0a7c453

Please sign in to comment.