@@ -38,15 +38,10 @@ jobs:
|
|||||||
# Use the CLI via npx (same as npm run sonar); optional SONAR_URL overrides sonar-project.properties.
|
# Use the CLI via npx (same as npm run sonar); optional SONAR_URL overrides sonar-project.properties.
|
||||||
# In Gitea: Settings → Secrets → SONAR_TOKEN (and optionally SONAR_URL).
|
# In Gitea: Settings → Secrets → SONAR_TOKEN (and optionally SONAR_URL).
|
||||||
- name: SonarQube Scan
|
- name: SonarQube Scan
|
||||||
|
uses: SonarSource/sonarqube-scan-action@v6
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
|
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
|
||||||
run: |
|
|
||||||
if [ -n "${SONAR_HOST_URL}" ]; then
|
|
||||||
npx --yes sonarqube-scanner -Dsonar.host.url="${SONAR_HOST_URL}"
|
|
||||||
else
|
|
||||||
npx --yes sonarqube-scanner
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ---------------- ANDROID SDK (required on Ubuntu: ANDROID_HOME / sdk.dir) ----------------
|
# ---------------- ANDROID SDK (required on Ubuntu: ANDROID_HOME / sdk.dir) ----------------
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
|
|||||||
Reference in New Issue
Block a user