File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -123,19 +123,20 @@ jobs:
123
123
124
124
- name : Анализ в SonarQube (branch)
125
125
if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
126
+ env :
127
+ SONAR_TOKEN : ${{ secrets.SONARQUBE_TOKEN }}
126
128
run : sonar-scanner
127
- -Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}
128
129
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
129
130
-Dsonar.branch.name=${{ steps.extract_branch.outputs.branch }}
130
131
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
131
132
132
133
# https://docs.sonarqube.org/latest/analysis/pull-request/
133
134
- name : Анализ в SonarQube (pull-request)
134
135
if : github.event_name == 'pull_request' || github.event_name == 'pull_request_target'
136
+ env :
137
+ SONAR_TOKEN : ${{ secrets.SONARQUBE_TOKEN }}
135
138
run : sonar-scanner
136
- -Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}
137
139
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
138
- -Dsonar.branch.name=${{ steps.extract_branch.outputs.branch }}
139
140
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
140
141
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
141
142
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
You can’t perform that action at this time.
0 commit comments