Skip to content

Commit d01a4b4

Browse files
daohoangsonclaude
andauthored
fix: skip SonarQube scan when token is unavailable (#1575)
Fork PRs don't have access to repository secrets, causing the SonarQube step to fail. Skip the step when SONAR_TOKEN is empty. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 1f6e746 commit d01a4b4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/flutter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ jobs:
4646
path: "**/failures/"
4747

4848
- uses: SonarSource/sonarqube-scan-action@299e4b793aaa83bf2aba7c9c14bedbb485688ec4 # v7.1.0
49+
if: env.SONAR_TOKEN
4950
env:
5051
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)