File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments