diff --git a/.github/workflows/sonar-qube.yml b/.github/workflows/sonar-qube.yml index d80422a7a..45b74729f 100644 --- a/.github/workflows/sonar-qube.yml +++ b/.github/workflows/sonar-qube.yml @@ -77,11 +77,12 @@ jobs: done ISSUE_COUNT=$(jq '.issues | length' issues.json) - if [ "$ISSUE_COUNT" -gt 0 ]; then - echo "❌ Build failed: Found $ISSUE_COUNT issues." + BASELINE_ISSUE_COUNT=89 # Baseline issue count + if [ "$ISSUE_COUNT" -gt "$BASELINE_ISSUE_COUNT" ]; then + echo "❌ Build failed: Found $ISSUE_COUNT issues, which is more than the baseline of $BASELINE_ISSUE_COUNT." exit 1 else - echo "✅ No issues found." + echo "✅ Build passed: Found $ISSUE_COUNT issues, which is within the baseline of $BASELINE_ISSUE_COUNT." fi - name: Upload SonarQube Artifacts if: always()