This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch ci/sonarcloud
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit b561004262aa5982a8c68e1852f1893b9fa52a73
Author: Shad Storhaug <[email protected]>
AuthorDate: Fri Nov 4 15:23:44 2022 +0700

    sonar.yml: Use SONARCLOUD_TOKEN secret directly
---
 .github/workflows/sonar.yml | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
index 48c1fc0bd..d1f4a9985 100644
--- a/.github/workflows/sonar.yml
+++ b/.github/workflows/sonar.yml
@@ -39,9 +39,8 @@ jobs:
       - name: Build and analyze
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Needed to get PR 
information, if any
-          SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
         shell: powershell
         run: |
-          .\.sonar\scanner\dotnet-sonarscanner begin /k:"apache_lucenenet" 
/o:"apache" /d:sonar.login="${{ env.SONAR_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.login="${{ 
env.SONAR_TOKEN }}"
+          .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login="${{ 
secrets.SONARCLOUD_TOKEN }}"

Reply via email to