Skip to content

Commit 3907f31

Browse files
committed
fix qa on PR
1 parent f3bf7f4 commit 3907f31

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/qa.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,19 +123,20 @@ jobs:
123123

124124
- name: Анализ в SonarQube (branch)
125125
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
126+
env:
127+
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
126128
run: sonar-scanner
127-
-Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}
128129
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
129130
-Dsonar.branch.name=${{ steps.extract_branch.outputs.branch }}
130131
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
131132

132133
# https://docs.sonarqube.org/latest/analysis/pull-request/
133134
- name: Анализ в SonarQube (pull-request)
134135
if: github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
136+
env:
137+
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
135138
run: sonar-scanner
136-
-Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}
137139
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
138-
-Dsonar.branch.name=${{ steps.extract_branch.outputs.branch }}
139140
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
140141
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
141142
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}

0 commit comments

Comments
 (0)