Skip to content

Commit

Permalink
ci(sq): fix анализ сонаром
Browse files Browse the repository at this point in the history
  • Loading branch information
alkoleft committed Aug 29, 2024
1 parent 5d986ac commit dd3e8c3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/sonar-qube-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,15 @@ jobs:
path: ./exts/yaxunit/src
id: extract_version

- name: Установка сканера Sonar
uses: warchant/setup-sonar-scanner@v8
with:
version: 6.1.0.4477

# Анализ проекта в SonarQube (ветка)
- name: Анализ в SonarQube (${{ github.ref_name }})
if: github.event_name == 'push'
uses: sonarsource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner
LC_ALL: "ru_RU.UTF-8"
with:
args: >
-Dsonar.host.url=https://sonar.openbsl.ru
-Dsonar.branch.name=${{ github.ref_name }}
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
Expand All @@ -48,9 +46,11 @@ jobs:
# https://docs.sonarqube.org/latest/analysis/pull-request/
- name: Анализ в SonarQube (pull-request ${{ github.event.number }})
if: github.event_name == 'pull_request_target' || github.event_name == 'pull_request'
uses: sonarsource/[email protected]
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: sonar-scanner
with:
args: >
-Dsonar.host.url=https://sonar.openbsl.ru
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
Expand Down

0 comments on commit dd3e8c3

Please sign in to comment.