Skip to content

Commit

Permalink
Do not attempt to run sonar scanner if SONAR_TOKEN is not exported
Browse files Browse the repository at this point in the history
Secrets are not exported on builds originating from forks
  • Loading branch information
pavel-kirienko authored Apr 3, 2024
1 parent 08546d7 commit 0ffc86d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ jobs:
SONAR_SCANNER_VERSION: 4.6.1.2450
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != ''
steps:
- uses: actions/checkout@v2
with:
Expand Down

0 comments on commit 0ffc86d

Please sign in to comment.