Skip to content

Commit 950fe1e

Browse files
Add SonarQube integration for Python code scanning
- Create sonar-project.properties with project configuration - Add GitHub Actions workflow for SonarQube analysis - Configure Python language scanning with pytest coverage - Integrates with org-level SonarQube server - Scans on push to main/develop and pull requests - Project key: TEGRASW_Blueprints-SRE_warehouse-operational-assistant_multi-agent-warehouse 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent ffb23ce commit 950fe1e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/sonarqube.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: SonarQube Analysis
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
sonarqube:
12+
uses: NVIDIA-AI-Blueprints/sonarqube-workflows/.github/workflows/sonarqube-reusable-template.yml@main
13+
with:
14+
language: python
15+
testCommand: pytest --cov=. --cov-report=xml
16+
secrets: inherit

sonar-project.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SonarQube Configuration File
2+
# Required by the reusable SonarQube workflow template
3+
4+
sonar.projectKey=TEGRASW_Blueprints-SRE_warehouse-operational-assistant_multi-agent-warehouse
5+
sonar.projectName=Multi-Agent-Intelligent-Warehouse
6+
sonar.projectVersion=1.0.0
7+
sonar.sourceEncoding=UTF-8
8+
9+
# Source code location
10+
sonar.sources=.
11+
sonar.exclusions=**/*_test.py,**/.git/**,**/venv/**,**/node_modules/**,.github/**,build/**,dist/**
12+
13+
# Python specific settings
14+
sonar.language=python
15+
sonar.python.coverage.reportPaths=coverage.xml
16+
17+
# Quality gate settings
18+
sonar.qualitygate.wait=true

0 commit comments

Comments
 (0)