Skip to content

Commit

Permalink
Remove html report
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Nov 21, 2024
1 parent 7264f6b commit 430a3cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/sonar-qube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,17 @@ jobs:
mkdir -p sonar-reports
curl -s -u admin:admin "http://localhost:9000/api/issues/search?componentKeys=local_project" -o sonar-reports/issues.json
cat sonar-reports/issues.json | jq > sonar-reports/issues.json
curl -s -u admin:admin "http://localhost:9000/dashboard/index/local_project" -o sonar-reports/sonar-report.html
echo "SonarQube Issues Cmdline Report:"
jq -r '.issues[] | "File: \(.component), Rule: \(.rule), Message: \(.message)"' sonar-reports/issues.json | sort
ISSUE_COUNT=$(jq '.issues | length' sonar-reports/issues.json)
if [ "$ISSUE_COUNT" -gt 0 ]; then
echo "❌ Build failed: Found $ISSUE_COUNT issues in the codebase."
exit 1
else
echo "✅ No issues found in the codebase."
fi
[ "$ISSUE_COUNT" -eq 0 ] || exit 1
- name: Upload SonarQube Artifacts
if: always()
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 430a3cd

Please sign in to comment.