Skip to content

Commit 2987204

Browse files
CopilotRaouf25
andcommitted
fix: skip SonarCloud analysis when SONAR_TOKEN is unavailable (e.g., Dependabot PRs)
Co-authored-by: Raouf25 <4578855+Raouf25@users.noreply.github.com>
1 parent 0966524 commit 2987204

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/reusable-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
check_name: 'Test Results'
5151

5252
- name: Build and analyze with SonarCloud
53+
if: ${{ secrets.SONAR_TOKEN != '' }}
5354
env:
5455
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5556
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)