refactor(secrets): use SONARQUBE_HOST and SONARQUBE_TOKEN for SonarQube

Made-with: Cursor
This commit is contained in:
WDI-Ideas
2026-04-08 00:15:37 +05:30
parent 821abc7d0b
commit b8f645b726
4 changed files with 18 additions and 18 deletions

View File

@@ -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:

View File

@@ -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' }}

View File

@@ -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

View File

@@ -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 |
---