diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a1108bc..5516b7b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -79,6 +79,15 @@ jobs: with: maven-version: ${{ inputs.maven_version }} + - id: debug-sonar + name: debug SONAR_TOKEN + run: | + if [ -z "${{ secrets.SONAR_TOKEN }}" ]; then + echo "SONAR_TOKEN is empty" + else + echo "SONAR_TOKEN is set" + fi + - name: Build with Maven working-directory: source run: mvn -B clean verify sonar:sonar org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom -Dsonar.host.url="${{ inputs.sonar_host }}" -Dsonar.token="${{ secrets.SONAR_TOKEN }}"