Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,19 +373,19 @@ jobs:
- name: Check if SonarQube token exists
id: sonar_check
run: |
if [ -z "${{ secrets.SONAR_TOKEN }}" ]; then
if [ -z "${{ secrets.DHIS2_BOT_SONARCLOUD_TOKEN }}" ]; then
echo "skip=true" >> $GITHUB_OUTPUT
echo "⚠️ SONAR_TOKEN not configured, skipping SonarQube analysis"
echo "⚠️ DHIS2_BOT_SONARCLOUD_TOKEN not configured, skipping SonarQube analysis"
else
echo "skip=false" >> $GITHUB_OUTPUT
echo "✅ SONAR_TOKEN configured, running SonarQube analysis"
echo "✅ DHIS2_BOT_SONARCLOUD_TOKEN configured, running SonarQube analysis"
fi

- name: Run SonarQube analysis
if: steps.sonar_check.outputs.skip != 'true'
run: ./scripts/sonarqube.sh
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.DHIS2_BOT_SONARCLOUD_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_BRANCH: ${{ github.ref_name }}
GIT_BRANCH_DEST: ${{ github.event_name == 'pull_request' && github.base_ref || '' }}
Expand Down
Loading