From 3e919330ecb95ddce98368f08ca7094877d71a4c Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 15:46:02 +0800 Subject: [PATCH 01/23] add sonar config --- .github/workflows/sonarqube.yaml | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/sonarqube.yaml diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml new file mode 100644 index 00000000..3d71c039 --- /dev/null +++ b/.github/workflows/sonarqube.yaml @@ -0,0 +1,46 @@ +on: + pull_request: + types: [opened, synchronize, reopened] + +name: PR Static Code Analysis +jobs: + static-code-analysis: + runs-on: ubuntu-latest + steps: + - name: Code Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: '7.0' + - name: Install Protoc + uses: arduino/setup-protoc@v3 + with: + version: "23.x" + - name: Set up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + - name: Cache SonarQube packages + uses: actions/cache@v1 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar + - name: Cache SonarQube scanner + id: cache-sonar-scanner + uses: actions/cache@v1 + with: + path: ./.sonar/scanner + key: ${{ runner.os }}-sonar-scanner + restore-keys: ${{ runner.os }}-sonar-scanner + - name: Install SonarScanner for .NET + run: dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner + - name: Add .NET global tools to PATH + run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH + - name: Begin SonarQube analysis + run: | + ./.sonar/scanner/dotnet-sonarscanner begin /k:"forest-contract" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" + dotnet build + ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file From ef12023442a820912a41d87c094b4da1b244511a Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 16:23:41 +0800 Subject: [PATCH 02/23] modify probuf version --- .github/workflows/sonarqube.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 3d71c039..563b8200 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -13,12 +13,11 @@ jobs: fetch-depth: 0 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '7.0' + dotnet-version: '6.0' - name: Install Protoc - uses: arduino/setup-protoc@v3 - with: - version: "23.x" - - name: Set up JDK 17 + run: bash scripts/install.sh + + - name: Set up JDK 17 uses: actions/setup-java@v1 with: java-version: 17 From fafcf5f46755ae0a452d92b0bf1dec7efd89c483 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 16:28:19 +0800 Subject: [PATCH 03/23] add sonarqube --- .github/workflows/sonarqube.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 563b8200..070fe87f 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -13,11 +13,14 @@ jobs: fetch-depth: 0 - uses: actions/setup-dotnet@v4 with: - dotnet-version: '6.0' + dotnet-version: '7.0' + - name: Create temporary global.json + run: echo '{"sdk":{"version": "7.0.x"}}' > ./global.json - name: Install Protoc - run: bash scripts/install.sh - - - name: Set up JDK 17 + uses: arduino/setup-protoc@v3 + with: + version: "23.x" + - name: Set up JDK 17 uses: actions/setup-java@v1 with: java-version: 17 From 5a2561f635f37ade3b52b4575abc5f7e56aaf465 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 16:42:37 +0800 Subject: [PATCH 04/23] revert config --- .github/workflows/sonarqube.yaml | 48 ++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 070fe87f..8e11456f 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -1,48 +1,92 @@ on: + pull_request: + types: [opened, synchronize, reopened] + + + name: PR Static Code Analysis + jobs: + static-code-analysis: + runs-on: ubuntu-latest + steps: + - name: Code Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-dotnet@v4 + with: + dotnet-version: '7.0' - - name: Create temporary global.json - run: echo '{"sdk":{"version": "7.0.x"}}' > ./global.json + - name: Install Protoc + uses: arduino/setup-protoc@v3 + with: + version: "23.x" + - name: Set up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + - name: Cache SonarQube packages + uses: actions/cache@v1 + with: + path: ~/.sonar/cache + key: ${{ runner.os }}-sonar + restore-keys: ${{ runner.os }}-sonar + - name: Cache SonarQube scanner + id: cache-sonar-scanner + uses: actions/cache@v1 + with: + path: ./.sonar/scanner + key: ${{ runner.os }}-sonar-scanner + restore-keys: ${{ runner.os }}-sonar-scanner + - name: Install SonarScanner for .NET + run: dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner + - name: Add .NET global tools to PATH + run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH + - name: Begin SonarQube analysis + run: | + ./.sonar/scanner/dotnet-sonarscanner begin /k:"forest-contract" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" + dotnet build + ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file From 9631ea1ea9d882a389836c5aab96ad704430f8ce Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 16:57:28 +0800 Subject: [PATCH 05/23] update protobuf version --- .github/workflows/sonarqube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 8e11456f..ef956354 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -37,7 +37,7 @@ jobs: with: - version: "23.x" + version: "3.4.0" - name: Set up JDK 17 From defec471122740342bb3fa9e201aef02136f4825 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:01:07 +0800 Subject: [PATCH 06/23] update protobuf version --- .github/workflows/sonarqube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index ef956354..fd7fca99 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -33,7 +33,7 @@ jobs: - name: Install Protoc - uses: arduino/setup-protoc@v3 + uses: arduino/setup-protoc with: From e5d51f54c8c8b566a0693fbcc7f34d13af82b212 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:03:19 +0800 Subject: [PATCH 07/23] update protobuf version --- .github/workflows/sonarqube.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index fd7fca99..dcc20490 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -33,11 +33,11 @@ jobs: - name: Install Protoc - uses: arduino/setup-protoc + uses: arduino/setup-protoc@v3 with: - version: "3.4.0" + version: "23.x - name: Set up JDK 17 From 25f6b8b5ddc3e626889af297659fc84a8d18f4d9 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:05:48 +0800 Subject: [PATCH 08/23] update protobuf version --- .github/workflows/sonarqube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index dcc20490..f054304d 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -37,7 +37,7 @@ jobs: with: - version: "23.x + version: "3.20.3" - name: Set up JDK 17 From ad24018b0b40ef00bd3eba169158293bc1f490f5 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:16:00 +0800 Subject: [PATCH 09/23] update protobuf version --- .github/workflows/sonarqube.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index f054304d..aed0016b 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -29,11 +29,11 @@ jobs: with: - dotnet-version: '7.0' + dotnet-version: '6.0' - name: Install Protoc - uses: arduino/setup-protoc@v3 + uses: arduino/setup-protoc with: From 8493d448d3e5731f54899bd5f3d0758298c90b59 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:19:12 +0800 Subject: [PATCH 10/23] revert protoc version --- .github/workflows/sonarqube.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index aed0016b..8e11456f 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -29,15 +29,15 @@ jobs: with: - dotnet-version: '6.0' + dotnet-version: '7.0' - name: Install Protoc - uses: arduino/setup-protoc + uses: arduino/setup-protoc@v3 with: - version: "3.20.3" + version: "23.x" - name: Set up JDK 17 From dfbde8dd69898407c65a4e55692c6a1f8a96a5e6 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:25:10 +0800 Subject: [PATCH 11/23] modify protoc --- .github/workflows/sonarqube.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 8e11456f..94d52f8d 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -32,12 +32,7 @@ jobs: dotnet-version: '7.0' - name: Install Protoc - - uses: arduino/setup-protoc@v3 - - with: - - version: "23.x" + run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - name: Set up JDK 17 From 6e1c5707051532a43b8d58afc69b6844d94c0c97 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:32:15 +0800 Subject: [PATCH 12/23] add install proc --- .github/workflows/sonarqube.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 94d52f8d..5ef89d18 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -31,8 +31,8 @@ jobs: dotnet-version: '7.0' - - name: Install Protoc - run: sudo apt-get update && sudo apt-get install -y protobuf-compiler + - name: 'Install protobuf' + run: bash scripts/install.sh - name: Set up JDK 17 From c90bcc2ba5a1a03424ce7f7deec5053c1c0ff9d2 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:42:07 +0800 Subject: [PATCH 13/23] update net version --- .github/workflows/sonarqube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 5ef89d18..3ff63be5 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -29,7 +29,7 @@ jobs: with: - dotnet-version: '7.0' + dotnet-version: '6.0' - name: 'Install protobuf' run: bash scripts/install.sh From f65e9f9455571c826158a0221de2cd9caab62b85 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 17:57:20 +0800 Subject: [PATCH 14/23] add AElf.CSharp.CodeOps package --- contract/Forest/Forest.csproj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contract/Forest/Forest.csproj b/contract/Forest/Forest.csproj index 78d18bf8..657af472 100755 --- a/contract/Forest/Forest.csproj +++ b/contract/Forest/Forest.csproj @@ -20,7 +20,9 @@ Protobuf\Proto\authority_info.proto - + + + Protobuf\Proto\reference\acs12.proto From 3d62bd0a446c3c343876fc395ded40a0a51e80e4 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 18:20:34 +0800 Subject: [PATCH 15/23] modify net sdk config --- .github/workflows/sonarqube.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 3ff63be5..d78ce24b 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -26,12 +26,12 @@ jobs: fetch-depth: 0 - uses: actions/setup-dotnet@v4 - with: + dotnet-version: '7.0' + - name: Create temporary global.json + run: echo '{"sdk":{"version": "7.0.x"}}' > ./global.json - dotnet-version: '6.0' - - - name: 'Install protobuf' + - name: Install protobuf run: bash scripts/install.sh - name: Set up JDK 17 From 888efa3dd1efdff24f6216d1e9244e31a103afb2 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 18:29:15 +0800 Subject: [PATCH 16/23] modify sonarqube --- .github/workflows/sonarqube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index d78ce24b..1961200f 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -29,7 +29,7 @@ jobs: with: dotnet-version: '7.0' - name: Create temporary global.json - run: echo '{"sdk":{"version": "7.0.x"}}' > ./global.json + run: echo '{"sdk":{"version": "7.0.410"}}' > ./global.json - name: Install protobuf run: bash scripts/install.sh From b4a7508bc1ab25b110385642cebbdf3f5a5fb3a8 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 18:35:56 +0800 Subject: [PATCH 17/23] use net 6.0 --- .github/workflows/sonarqube.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 1961200f..04b4f341 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -27,9 +27,9 @@ jobs: - uses: actions/setup-dotnet@v4 with: - dotnet-version: '7.0' + dotnet-version: '6.0' - name: Create temporary global.json - run: echo '{"sdk":{"version": "7.0.410"}}' > ./global.json + run: echo '{"sdk":{"version": "6.0.*"}}' > ./global.json - name: Install protobuf run: bash scripts/install.sh From c529cbe7d4d5cc05b2a8ad023ab462b50f249f52 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 18:38:15 +0800 Subject: [PATCH 18/23] use net 6.0 --- .github/workflows/sonarqube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 04b4f341..eb9a7335 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -29,7 +29,7 @@ jobs: with: dotnet-version: '6.0' - name: Create temporary global.json - run: echo '{"sdk":{"version": "6.0.*"}}' > ./global.json + run: echo '{"sdk":{"version": "6.0.x"}}' > ./global.json - name: Install protobuf run: bash scripts/install.sh From 09342fdece90bc5e87b75115b8cba07a09508372 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 18:41:57 +0800 Subject: [PATCH 19/23] use net 6.0 --- .github/workflows/sonarqube.yaml | 47 ++------------------------------ 1 file changed, 3 insertions(+), 44 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index eb9a7335..041134b0 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -1,87 +1,46 @@ on: - pull_request: - types: [opened, synchronize, reopened] - - - name: PR Static Code Analysis - jobs: - static-code-analysis: - runs-on: ubuntu-latest - steps: - - name: Code Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-dotnet@v4 with: - dotnet-version: '6.0' + dotnet-version: '7.0' - name: Create temporary global.json - run: echo '{"sdk":{"version": "6.0.x"}}' > ./global.json - + run: echo '{"sdk":{"version": "7.0.x"}}' > ./global.json - name: Install protobuf - run: bash scripts/install.sh - + run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - name: Set up JDK 17 - uses: actions/setup-java@v1 - with: - java-version: 17 - - name: Cache SonarQube packages - uses: actions/cache@v1 - with: - path: ~/.sonar/cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - name: Cache SonarQube scanner - id: cache-sonar-scanner - uses: actions/cache@v1 - with: - path: ./.sonar/scanner - key: ${{ runner.os }}-sonar-scanner - restore-keys: ${{ runner.os }}-sonar-scanner - - name: Install SonarScanner for .NET - run: dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner - - name: Add .NET global tools to PATH - run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH - - name: Begin SonarQube analysis - run: | - ./.sonar/scanner/dotnet-sonarscanner begin /k:"forest-contract" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" - dotnet build - ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file From d5ae1271c8dcbba9ea6feec2bf8afb4dadd03b39 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 18:45:36 +0800 Subject: [PATCH 20/23] use net 7.0 --- .github/workflows/sonarqube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 041134b0..d6042de5 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -15,7 +15,7 @@ jobs: with: dotnet-version: '7.0' - name: Create temporary global.json - run: echo '{"sdk":{"version": "7.0.x"}}' > ./global.json + run: echo '{"sdk":{"version": "7.0.410"}}' > ./global.json - name: Install protobuf run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - name: Set up JDK 17 From 8925377ea5d2bdc46fb639f1d5fb882d46a9c682 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 18:53:30 +0800 Subject: [PATCH 21/23] remove unuse code --- contract/Forest/Forest.csproj | 3 --- 1 file changed, 3 deletions(-) diff --git a/contract/Forest/Forest.csproj b/contract/Forest/Forest.csproj index 657af472..2c442dcf 100755 --- a/contract/Forest/Forest.csproj +++ b/contract/Forest/Forest.csproj @@ -20,9 +20,6 @@ Protobuf\Proto\authority_info.proto - - - Protobuf\Proto\reference\acs12.proto From 8d83fb6d94bf8840d74be912ccb65052989d1bbc Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 27 Jun 2024 18:55:12 +0800 Subject: [PATCH 22/23] remove unuse code --- .github/workflows/sonarqube.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index d6042de5..041134b0 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -15,7 +15,7 @@ jobs: with: dotnet-version: '7.0' - name: Create temporary global.json - run: echo '{"sdk":{"version": "7.0.410"}}' > ./global.json + run: echo '{"sdk":{"version": "7.0.x"}}' > ./global.json - name: Install protobuf run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - name: Set up JDK 17 From e22e372b92843d495a8e8f22bd9e965283806462 Mon Sep 17 00:00:00 2001 From: kaiweijw <167949202+kaiweijw@users.noreply.github.com> Date: Thu, 27 Jun 2024 19:06:39 +0800 Subject: [PATCH 23/23] Update sonarqube.yaml --- .github/workflows/sonarqube.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sonarqube.yaml b/.github/workflows/sonarqube.yaml index 041134b0..988c355c 100644 --- a/.github/workflows/sonarqube.yaml +++ b/.github/workflows/sonarqube.yaml @@ -15,7 +15,7 @@ jobs: with: dotnet-version: '7.0' - name: Create temporary global.json - run: echo '{"sdk":{"version": "7.0.x"}}' > ./global.json + run: echo '{"sdk":{"version":"7.0.x"}}' > ./global.json - name: Install protobuf run: sudo apt-get update && sudo apt-get install -y protobuf-compiler - name: Set up JDK 17 @@ -43,4 +43,4 @@ jobs: run: | ./.sonar/scanner/dotnet-sonarscanner begin /k:"forest-contract" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" dotnet build - ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file + ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"