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:
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 }}
You can’t perform that action at this time.
0 commit comments