Update .gitea/workflows/qualitytest.yml

This commit is contained in:
2026-04-06 03:44:09 +00:00
parent d6ab74ec14
commit 690f654df0

View File

@@ -29,7 +29,7 @@ jobs:
- name: Run SonarQube Scan
run: |
REPO_NAME=$(echo "${{ inputs.project_key || gitea.repository }}" | tr '/' '_')
REPO_NAME=${{ inputs.project_key }}
sonar-scanner \
-Dsonar.projectKey=$REPO_NAME \
@@ -48,7 +48,7 @@ jobs:
- name: Get Quality Gate Result
if: gitea.event.pull_request != null
run: |
REPO_NAME=$(echo "${{ inputs.project_key || gitea.repository }}" | tr '/' '_')
REPO_NAME=${{ inputs.project_key }}
curl -s -u ${{ secrets.SONAR_TOKEN }}: \
"${{ secrets.SONAR_HOST_URL }}/api/qualitygates/project_status?projectKey=$REPO_NAME" \