Skip to content

Commit adb23f9

Browse files
committed
fix: Added sonar debug
1 parent 95d8cc0 commit adb23f9

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/sonar-cloud-analysis.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,34 +60,19 @@ jobs:
6060
NAME=$(uv run pyproject-info project.name | tr -d '"'); echo "app-name=$NAME" >> "$GITHUB_OUTPUT"
6161
echo "github-repository=$(echo $GITHUB_REPOSITORY | cut -d'/' -f2)" >> "$GITHUB_OUTPUT"
6262
63-
- name: SonarCloud / Run SonarCloud action with release event
64-
if: ${{ github.event_name == 'release' }}
65-
uses: sonarsource/sonarqube-scan-action@v4
66-
env:
67-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
69-
with:
70-
projectBaseDir: .
71-
args: >
72-
-Dsonar.projectKey=InditexTech_${{ steps.version.outputs.github-repository }}
73-
-Dsonar.projectName=${{ steps.version.outputs.app-name }}
74-
-Dsonar.projectVersion=${{ github.event.release.tag_name }}
75-
-Dsonar.branch.name="release/${{ github.event.release.tag_name }}"
76-
-Dsonar.host.url="https://sonarcloud.io/"
77-
-Dsonar.organization=inditextech
78-
7963
- name: SonarCloud / Run SonarCloud action
80-
if: ${{ github.event_name != 'release' }}
8164
uses: sonarsource/sonarqube-scan-action@v4
8265
env:
8366
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8467
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
8568
with:
8669
projectBaseDir: .
8770
args: >
71+
-Dsonar.organization=inditextech
8872
-Dsonar.projectKey=InditexTech_${{ steps.version.outputs.github-repository }}
8973
-Dsonar.projectName=${{ steps.version.outputs.app-name }}
9074
-Dsonar.projectVersion=${{ steps.version.outputs.app-version }}
9175
-Dsonar.branch.name=${{ github.base_ref || github.ref_name }}
9276
-Dsonar.host.url="https://sonarcloud.io/"
93-
-Dsonar.organization=inditextech
77+
-Dsonar.verbose=true
78+
-Dsonar.token=${SONAR_TOKEN}

0 commit comments

Comments
 (0)