From 234afa8e8980bb80f41c6d0a68571340d0f596a0 Mon Sep 17 00:00:00 2001 From: Andreas Mandel Date: Sun, 22 Feb 2026 12:29:26 +0100 Subject: [PATCH] Skip SonarQube if SONAR_TOKEN is not available --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e07e060..49f92aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -227,6 +227,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set -eux + if [ -z "${SONAR_TOKEN:-}" ]; then + echo "Will not execute SonarQube - SONAR_TOKEN not set." + exit 0 + fi # Hack - point sonarqube to the real sources not the copy of it # See also https://community.sonarsource.com/t/scanning-platformio-c-embeded-projects/35141/2 sed -i 's|OpenBikeSensorFirmware/bin|OpenBikeSensorFirmware|g' \