From 1a5a9929be6638e1a8091fe8a1b2228f17bd5e85 Mon Sep 17 00:00:00 2001 From: rahuljain-nice Date: Mon, 27 Oct 2025 13:07:51 +0530 Subject: [PATCH] DE-144723 | Added SonarQube Scan. --- .github/workflows/sonar-qube-scan.yaml | 20 ++++++++++++++++++++ sonar-project.properties | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/sonar-qube-scan.yaml create mode 100644 sonar-project.properties diff --git a/.github/workflows/sonar-qube-scan.yaml b/.github/workflows/sonar-qube-scan.yaml new file mode 100644 index 0000000..b3bd3e9 --- /dev/null +++ b/.github/workflows/sonar-qube-scan.yaml @@ -0,0 +1,20 @@ +name: SonarQube Scanning + +on: + push: + branches: + - '**' # Matches all branches + +jobs: + sonarqube-scan: + name: Run SonarQube Analysis + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@master + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..0ff067d --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,6 @@ +sonar.projectKey=com.nicedfo.react-highcharts +sonar.projectName=react-highcharts +sonar.sources=demo,src +sonar.exclusions=vendor/**,temp/**,tests/**,**/*.html,**/*.json +sonar.host.url=https://sonar.nice.com +sonar.sourceEncoding=UTF-8