added debug output

This commit is contained in:
Jörn Müehlencord
2026-04-01 13:48:12 +02:00
parent 2fecb1b7ac
commit 6332ef1c88

View File

@@ -79,6 +79,15 @@ jobs:
with: with:
maven-version: ${{ inputs.maven_version }} 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 - name: Build with Maven
working-directory: source 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 }}" run: mvn -B clean verify sonar:sonar org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom -Dsonar.host.url="${{ inputs.sonar_host }}" -Dsonar.token="${{ secrets.SONAR_TOKEN }}"