Skip to content

Commit d73a9aa

Browse files
Fix SonarQube step
1 parent 058f93f commit d73a9aa

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
run: echo "VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
4343

4444
- name: SonarQube Scan (Push)
45-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')
46-
uses: SonarSource/sonarcloud-github-action@v1.9
45+
if: github.event_name == 'push'
46+
uses: SonarSource/sonarqube-scan-action@v6
4747
env:
4848
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
4949
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -52,11 +52,10 @@ jobs:
5252
args: >
5353
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
5454
-Dsonar.projectVersion=${{ env.VERSION }}
55-
-Dsonar.branch.name=${{ github.ref_name }}
5655
5756
- name: SonarQube Scan (Pull Request)
58-
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
59-
uses: SonarSource/sonarcloud-github-action@v1.9
57+
if: github.event_name == 'pull_request'
58+
uses: SonarSource/sonarqube-scan-action@v6
6059
env:
6160
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
6261
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)