Skip to content

Commit

Permalink
Update SonarScanner version (#25)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Pavel Kirienko <[email protected]>
  • Loading branch information
maksimdrachov and pavel-kirienko authored Apr 4, 2024
1 parent 77a5053 commit a566ca6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ jobs:
sonarcloud:
runs-on: ubuntu-latest
env:
SONAR_SCANNER_VERSION: 4.6.1.2450
SONAR_SCANNER_VERSION: 5.0.1.3006
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
if: env.SONAR_TOKEN != ''
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -139,9 +138,10 @@ jobs:
python -m pip --disable-pip-version-check install yakut~=0.7
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: 'zulu'

- name: Cache SonarCloud packages
uses: actions/cache@v1
Expand Down Expand Up @@ -178,6 +178,7 @@ jobs:
# https://community.sonarsource.com/t/analyzing-a-header-only-c-library/51468
- name: Run sonar-scanner
if: env.SONAR_TOKEN != ''
run: >
sonar-scanner
--define sonar.host.url="https://sonarcloud.io"
Expand Down

0 comments on commit a566ca6

Please sign in to comment.