From 9b0264c9dca9c9877348fa9572647cb53642e8e5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 23:26:59 +0000 Subject: [PATCH 1/3] Initial plan From bc737a57dc62b978cbe4893eab6f285facfeef0a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 23:29:14 +0000 Subject: [PATCH 2/3] Remove SonarCloud from CI workflow, replace with clean build and test steps Co-authored-by: rrusson <653188+rrusson@users.noreply.github.com> --- .github/workflows/build.yml | 55 ++++++++++++++----------------------- 1 file changed, 20 insertions(+), 35 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c4a976..38a9583 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,47 +1,32 @@ -name: SonarQube +name: Build and Test on: push: branches: - master pull_request: types: [opened, synchronize, reopened] + jobs: build: - name: Build and analyze + name: Build and Test runs-on: windows-latest + steps: - - name: Set up JDK 17 - uses: actions/setup-java@v4 + - name: Checkout code + uses: actions/checkout@v4 with: - java-version: 17 - distribution: 'zulu' # Alternative distribution options are available. - - uses: actions/checkout@v4 + fetch-depth: 0 + + - name: Setup .NET 10 SDK + uses: actions/setup-dotnet@v4 with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - name: Cache SonarQube Cloud packages - uses: actions/cache@v4 - with: - path: ~\sonar\cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - name: Cache SonarQube Cloud scanner - id: cache-sonar-scanner - uses: actions/cache@v4 - with: - path: .\.sonar\scanner - key: ${{ runner.os }}-sonar-scanner - restore-keys: ${{ runner.os }}-sonar-scanner - - name: Install SonarQube Cloud scanner - 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 - - name: Build and analyze - env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - shell: powershell - run: | - .\.sonar\scanner\dotnet-sonarscanner begin /k:"rrusson_DarkClippy" /o:"rrusson" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" - dotnet build - .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file + dotnet-version: '10.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore -c Release + + - name: Run tests + run: dotnet test --no-build -c Release --verbosity normal \ No newline at end of file From cdcbe551a3ac7c230918e6a358f6b3184ab01e7e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 24 Jan 2026 23:30:13 +0000 Subject: [PATCH 3/3] Add explicit GITHUB_TOKEN permissions for security best practices Co-authored-by: rrusson <653188+rrusson@users.noreply.github.com> --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38a9583..a1b1690 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,8 @@ jobs: build: name: Build and Test runs-on: windows-latest + permissions: + contents: read steps: - name: Checkout code