From 9591094219565a6cceadc563b8de16f25d1d5f08 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 9 Jul 2025 23:46:03 +0000 Subject: [PATCH 1/2] Initial plan From 8751144d9d27e2ee8c2c9e3196f5a94c79e4ebb6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 9 Jul 2025 23:51:01 +0000 Subject: [PATCH 2/2] Add CodeQL workflow and fix C# language version Co-authored-by: trackd <17672644+trackd@users.noreply.github.com> --- .github/workflows/codeql.yml | 56 ++++++++++++++++++++++++++++++++++++ src/Sixel/Sixel.csproj | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..bbe3a39 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,56 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '15 5 * * 2' + +jobs: + analyze: + name: Analyze + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + permissions: + # required for all workflows + security-events: write + # only required for workflows in private repositories + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + language: [ 'csharp', 'powershell' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + queries: security-extended,security-and-quality + + - name: Setup .NET + if: matrix.language == 'csharp' + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Setup PowerShell + if: matrix.language == 'powershell' + shell: pwsh + run: | + Write-Host "PowerShell version: $($PSVersionTable.PSVersion)" + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file diff --git a/src/Sixel/Sixel.csproj b/src/Sixel/Sixel.csproj index 2d72f49..7bfc123 100644 --- a/src/Sixel/Sixel.csproj +++ b/src/Sixel/Sixel.csproj @@ -5,7 +5,7 @@ enable enable true - 13.0 + 12.0 0.5.0 Recommended true