Update .gitea/workflows/qualitytest.yml

This commit is contained in:
2026-04-06 03:33:32 +00:00
parent 3e8831bc0e
commit d6ab74ec14

View File

@@ -29,7 +29,7 @@ jobs:
- name: Run SonarQube Scan
run: |
REPO_NAME=${{ inputs.project_key || gitea.event.repository.name }}
REPO_NAME=$(echo "${{ inputs.project_key || gitea.repository }}" | tr '/' '_')
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=${{ inputs.project_key || gitea.event.repository.name }}
REPO_NAME=$(echo "${{ inputs.project_key || gitea.repository }}" | tr '/' '_')
curl -s -u ${{ secrets.SONAR_TOKEN }}: \
"${{ secrets.SONAR_HOST_URL }}/api/qualitygates/project_status?projectKey=$REPO_NAME" \