From b8f645b7261b0eb1b714d1dfe5b0a73612595850 Mon Sep 17 00:00:00 2001 From: WDI-Ideas Date: Wed, 8 Apr 2026 00:15:37 +0530 Subject: [PATCH] refactor(secrets): use SONARQUBE_HOST and SONARQUBE_TOKEN for SonarQube Made-with: Cursor --- .gitea/workflows/ci.yml | 8 ++++---- .gitea/workflows/quality.yml | 8 ++++---- .gitea/workflows/qualitytest.yml | 8 ++++---- readme.md | 12 ++++++------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b227a8a..891e3a7 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -50,9 +50,9 @@ on: required: false secrets: - SONAR_HOST_URL: + SONARQUBE_HOST: required: false - SONAR_TOKEN: + SONARQUBE_TOKEN: required: false BETA_SERVER_HOST: @@ -146,8 +146,8 @@ jobs: project_key: ${{ github.event.repository.name }} wait_for_quality_gate: ${{ inputs.wait_for_quality_gate }} secrets: - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONARQUBE_HOST: ${{ secrets.SONARQUBE_HOST }} + SONARQUBE_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} # 🚀 DEPLOY (runs after build; sonar may be skipped) deploy: diff --git a/.gitea/workflows/quality.yml b/.gitea/workflows/quality.yml index 12ea6d2..d983132 100644 --- a/.gitea/workflows/quality.yml +++ b/.gitea/workflows/quality.yml @@ -12,9 +12,9 @@ on: default: 'false' secrets: - SONAR_HOST_URL: + SONARQUBE_HOST: required: true - SONAR_TOKEN: + SONARQUBE_TOKEN: required: true jobs: @@ -35,7 +35,7 @@ jobs: -Dsonar.projectKey=${{ inputs.project_key }} \ -Dsonar.projectName=${{ inputs.project_key }} \ -Dsonar.sources=. \ - -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \ - -Dsonar.token=${{ secrets.SONAR_TOKEN }} \ + -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \ + -Dsonar.token=${{ secrets.SONARQUBE_TOKEN }} \ -Dsonar.exclusions=node_modules/**,dist/**,coverage/** \ -Dsonar.qualitygate.wait=${{ inputs.wait_for_quality_gate == true || inputs.wait_for_quality_gate == 'true' }} \ No newline at end of file diff --git a/.gitea/workflows/qualitytest.yml b/.gitea/workflows/qualitytest.yml index 17e4ee1..a1ca2b9 100644 --- a/.gitea/workflows/qualitytest.yml +++ b/.gitea/workflows/qualitytest.yml @@ -7,9 +7,9 @@ on: required: true type: string secrets: - SONAR_HOST_URL: + SONARQUBE_HOST: required: true - SONAR_TOKEN: + SONARQUBE_TOKEN: required: true jobs: @@ -29,7 +29,7 @@ jobs: -Dsonar.projectKey=${{ inputs.project_key }} \ -Dsonar.projectName=${{ inputs.project_key }} \ -Dsonar.sources=. \ - -Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \ - -Dsonar.token=${{ secrets.SONAR_TOKEN }} \ + -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \ + -Dsonar.token=${{ secrets.SONARQUBE_TOKEN }} \ -Dsonar.exclusions=node_modules/**,dist/**,coverage/** \ -Dsonar.qualitygate.wait=false \ No newline at end of file diff --git a/readme.md b/readme.md index 738c33b..a3e352d 100644 --- a/readme.md +++ b/readme.md @@ -42,8 +42,8 @@ jobs: pm2_id: app secrets: - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONARQUBE_HOST: ${{ secrets.SONARQUBE_HOST }} + SONARQUBE_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} BETA_SERVER_HOST: ${{ secrets.BETA_SERVER_HOST }} BETA_SERVER_PORT: ${{ secrets.BETA_SERVER_PORT }} @@ -70,10 +70,10 @@ jobs: ## SonarQube -| Name | Value | -| -------------- | ------------------------ | -| SONAR_HOST_URL | http://your-sonar-server | -| SONAR_TOKEN | your sonar token | +| Name | Value | +| ---------------- | ------------------------ | +| SONARQUBE_HOST | http://your-sonar-server | +| SONARQUBE_TOKEN | your sonar token | ---