From 3c8733bf1e0cd2b317c9ddc4977e09d5af8252a4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 22:39:18 +0000 Subject: [PATCH 1/4] chore(deps): bump Microsoft.Extensions.Configuration and Microsoft.Extensions.Configuration.Json Bumps [Microsoft.Extensions.Configuration](https://github.com/dotnet/runtime) and [Microsoft.Extensions.Configuration.Json](https://github.com/dotnet/runtime). These dependencies needed to be updated together. Updates `Microsoft.Extensions.Configuration` from 9.0.0 to 9.0.1 - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](https://github.com/dotnet/runtime/compare/v9.0.0...v9.0.1) Updates `Microsoft.Extensions.Configuration.Json` from 8.0.1 to 9.0.1 - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](https://github.com/dotnet/runtime/compare/v8.0.1...v9.0.1) --- updated-dependencies: - dependency-name: Microsoft.Extensions.Configuration dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: Microsoft.Extensions.Configuration.Json dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj | 2 +- src/sample/sample.csproj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj b/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj index 4a2a0326..2e1b0eb5 100644 --- a/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj +++ b/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj @@ -50,7 +50,7 @@ - + diff --git a/src/sample/sample.csproj b/src/sample/sample.csproj index d6cabf6a..2740a247 100644 --- a/src/sample/sample.csproj +++ b/src/sample/sample.csproj @@ -9,8 +9,8 @@ - - + + From 8c559e4da45b8efe1618ae512bcc19d08f6d8902 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 22:39:39 +0000 Subject: [PATCH 2/4] chore(deps): bump Microsoft.Extensions.Http from 9.0.0 to 9.0.1 Bumps [Microsoft.Extensions.Http](https://github.com/dotnet/runtime) from 9.0.0 to 9.0.1. - [Release notes](https://github.com/dotnet/runtime/releases) - [Commits](https://github.com/dotnet/runtime/compare/v9.0.0...v9.0.1) --- updated-dependencies: - dependency-name: Microsoft.Extensions.Http dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj b/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj index 4a2a0326..afb48ee9 100644 --- a/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj +++ b/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj @@ -51,7 +51,7 @@ - + From f4da18b5e31e3250164ad9507a23e0929e63a274 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 15 Jan 2025 08:01:35 -0500 Subject: [PATCH 3/4] chore: updates hosting dependency --- .../Microsoft.Graph.Cli.Core.csproj | 32 +++++++++---------- src/sample/sample.csproj | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj b/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj index b67def8a..6f5147c1 100644 --- a/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj +++ b/src/Microsoft.Graph.Cli.Core/Microsoft.Graph.Cli.Core.csproj @@ -47,26 +47,26 @@ OS_WINDOWS - - - - - - - - - - - - - + + + + + + + + + + + + + - - + + - + diff --git a/src/sample/sample.csproj b/src/sample/sample.csproj index 2740a247..93aed14c 100644 --- a/src/sample/sample.csproj +++ b/src/sample/sample.csproj @@ -11,7 +11,7 @@ - + From 5b14d6d130bc4e0ab880983cfc99b7e53a3af456 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 15 Jan 2025 08:03:35 -0500 Subject: [PATCH 4/4] ci: updates sonarcloud dotnet version Signed-off-by: Vincent Biret --- .github/workflows/sonarcloud.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 5b63b05f..9639471d 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -4,10 +4,10 @@ on: push: branches: - main - paths-ignore: ['**.md', '.vscode/**', '**.svg'] + paths-ignore: ["**.md", ".vscode/**", "**.svg"] pull_request: types: [opened, synchronize, reopened] - paths-ignore: ['**.md', '.vscode/**', '**.svg'] + paths-ignore: ["**.md", ".vscode/**", "**.svg"] env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} @@ -22,7 +22,7 @@ jobs: - name: Check whether unity activation requests should be done id: checksecret_job run: | - echo "is_SONAR_TOKEN_set=${{ env.SONAR_TOKEN != '' }}" >> $GITHUB_OUTPUT + echo "is_SONAR_TOKEN_set=${{ env.SONAR_TOKEN != '' }}" >> $GITHUB_OUTPUT build: needs: [checksecret] if: needs.checksecret.outputs.is_SONAR_TOKEN_set == 'true' @@ -32,19 +32,15 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v4 with: - distribution: 'adopt' + distribution: "adopt" java-version: 17 - - name: Setup .NET 5 # At the moment the scanner requires dotnet 5 https://www.nuget.org/packages/dotnet-sonarscanner - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 5.0.x - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 9.x - uses: actions/checkout@v4 with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis + fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Cache SonarCloud packages uses: actions/cache@v4 with: @@ -55,9 +51,9 @@ jobs: run: dotnet tool install dotnet-sonarscanner --create-manifest-if-needed - name: Build and analyze env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any CollectCoverage: true - CoverletOutputFormat: 'opencover' # https://github.com/microsoft/vstest/issues/4014#issuecomment-1307913682 + CoverletOutputFormat: "opencover" # https://github.com/microsoft/vstest/issues/4014#issuecomment-1307913682 shell: pwsh run: | dotnet tool run dotnet-sonarscanner begin /k:"microsoftgraph_msgraph-cli-core" /o:"microsoftgraph2" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/*.Tests/**/coverage.opencover.xml" /d:sonar.coverage.exclusions="src/sample/**"