fix: Update SonarQube integration in CI workflows to use pysonar
Some checks failed
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 27s
Docker Build and Push / build-and-push (push) Failing after 41s
Integration Tests / integration-tests (push) Failing after 52s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 1m22s
Service Adapters (Python FastAPI) / test (3.1) (push) Failing after 13s
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m47s
Service Adapters (Python FastAPI) / test (3.11) (push) Failing after 25s
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m52s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Service Adapters (Python FastAPI) / test (3.12) (push) Failing after 28s
Service Adapters (Python FastAPI) / test (3.9) (push) Failing after 28s
Service Adapters (Python FastAPI) / build (push) Has been skipped

### Summary of Changes
- Replaced `sonar-scanner` with `pysonar` for SonarQube analysis in CI workflows for Service Adapters.
- Updated installation instructions and command parameters for consistency across workflows.

### Expected Results
- Improved compatibility and maintainability of SonarQube integration in CI configurations.
This commit is contained in:
GSRN
2025-09-15 20:53:41 +02:00
parent cb6f12da67
commit f87603967a
3 changed files with 11 additions and 11 deletions

View File

@@ -115,7 +115,7 @@ jobs:
- name: Send results to SonarQube
run: |
echo "Sending Service Adapters results to SonarQube..."
# Install SonarQube Scanner for Python
# Install pysonar for SonarQube analysis
pip install pysonar
# Run SonarQube analysis
@@ -123,7 +123,7 @@ jobs:
--sonar-host-url=${{ secrets.SONAR_HOST_URL }} \
--sonar-token=${{ secrets.SONAR_TOKEN }} \
--sonar-project-key=labfusion-service-adapters \
--sonar-project-name='LabFusion Service Adapters'
--sonar-project-name="LabFusion Service Adapters"
- name: Build Docker image (test only)
run: docker build -t service-adapters:test .

View File

@@ -91,15 +91,15 @@ jobs:
- name: Send results to SonarQube
run: |
echo "Sending Service Adapters results to SonarQube..."
# Install SonarQube Scanner for Python
pip install sonar-scanner
# Install pysonar for SonarQube analysis
pip install pysonar
# Run SonarQube analysis
sonar-scanner \
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
-Dsonar.projectKey=labfusion-service-adapters \
-Dsonar.projectName=LabFusion Service Adapters
pysonar \
--sonar-host-url=${{ secrets.SONAR_HOST_URL }} \
--sonar-token=${{ secrets.SONAR_TOKEN }} \
--sonar-project-key=labfusion-service-adapters \
--sonar-project-name="LabFusion Service Adapters"
- name: Test results summary

View File

@@ -30,4 +30,4 @@ bandit==1.7.5
safety==2.3.5
# SonarQube Integration
sonar-scanner==4.8.0.2856
pysonar==1.2.0.2419