This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
The following commit(s) were added to refs/heads/master by this push:
new 68831443d .github/workflows/sonar.yml: Reverted to using
dotnet-sonarscanner 5.8.0 to see whether we still get a non zero exit code
(#878)
68831443d is described below
commit 68831443d032f2f14aabea7135bb000d61a679de
Author: Shad Storhaug <[email protected]>
AuthorDate: Thu Oct 19 14:40:14 2023 +0700
.github/workflows/sonar.yml: Reverted to using dotnet-sonarscanner 5.8.0 to
see whether we still get a non zero exit code (#878)
---
.github/workflows/sonar.yml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
index 7f2b1fdae..c9c9799a7 100644
--- a/.github/workflows/sonar.yml
+++ b/.github/workflows/sonar.yml
@@ -60,16 +60,17 @@ jobs:
key: ${{ runner.os }}-sonar-scanner
restore-keys: ${{ runner.os }}-sonar-scanner
- name: Install SonarCloud scanner
- if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
+ #if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
shell: powershell
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
- dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
+ # NOTE: Using 5.8.0 when the sonar scan was first added because that
is likely the version that was in the cache
+ dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
--version 5.8.0
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR
information, if any
shell: powershell
run: |
- .\.sonar\scanner\dotnet-sonarscanner begin /k:"apache_lucenenet"
/o:"apache" /d:sonar.token="${{ secrets.SONARCLOUD_TOKEN }}"
/d:sonar.host.url="https://sonarcloud.io"
+ .\.sonar\scanner\dotnet-sonarscanner begin /k:"apache_lucenenet"
/o:"apache" /d:sonar.login="${{ secrets.SONARCLOUD_TOKEN }}"
/d:sonar.host.url="https://sonarcloud.io"
dotnet build
- .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{
secrets.SONARCLOUD_TOKEN }}"
+ .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{
secrets.SONARCLOUD_TOKEN }}"