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 3ea1f26 commit f676200
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 f676200

Please sign in to comment.