From 7d24bb351faeefbb00b5e4a587a75242e8699ef7 Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 20:29:34 +0300 Subject: [PATCH 1/3] Initial commit with task details for issue #139 Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/linksplatform/Interfaces/issues/139 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..6ce7f85 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/linksplatform/Interfaces/issues/139 +Your prepared branch: issue-139-6bab94f7 +Your prepared working directory: /tmp/gh-issue-solver-1757698169243 + +Proceed. \ No newline at end of file From c488101ab89e0986ee7b91d7877a3f2e02bc725a Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 20:32:25 +0300 Subject: [PATCH 2/3] Add CodeQL badge and workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds: - CodeQL security analysis workflow for C# and C++ languages - CodeQL badge to README.md displaying security analysis status - Scheduled weekly scans and analysis on pull requests 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/codeql.yml | 69 ++++++++++++++++++++++++++++++++++++ README.md | 1 + 2 files changed, 70 insertions(+) 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..d100c2d --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,69 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '43 3 * * 0' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + timeout-minutes: 360 + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'cpp', 'csharp' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: true + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + queries: security-extended,security-and-quality + + - name: Setup .NET (for C# analysis) + if: matrix.language == 'csharp' + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Build C# + if: matrix.language == 'csharp' + run: | + cd csharp + dotnet restore + dotnet build -c Release + + - name: Install dependencies (for C++ analysis) + if: matrix.language == 'cpp' + run: | + sudo apt-get update + sudo apt-get install -y cmake build-essential + + - name: Build C++ + if: matrix.language == 'cpp' + run: | + cd cpp + mkdir -p build + cd build + cmake .. + make + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file diff --git a/README.md b/README.md index f24c3db..67ecbb5 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Codacy Badge](https://api.codacy.com/project/badge/Grade/93857535a2214ba9b512e1a88787d461)](https://app.codacy.com/gh/linksplatform/Interfaces?utm_source=github.com&utm_medium=referral&utm_content=linksplatform/Interfaces&utm_campaign=Badge_Grade_Settings) [![CodeFactor](https://www.codefactor.io/repository/github/linksplatform/interfaces/badge)](https://www.codefactor.io/repository/github/linksplatform/interfaces) +[![CodeQL](https://github.com/linksplatform/Interfaces/actions/workflows/codeql.yml/badge.svg)](https://github.com/linksplatform/Interfaces/actions/workflows/codeql.yml) | [![Actions Status](https://github.com/linksplatform/Interfaces/workflows/deploy-cpp/badge.svg)](https://github.com/linksplatform/Interfaces/actions?workflow=deploy-cpp) | [![NuGet Version and Downloads count](https://img.shields.io/nuget/v/Platform.Interfaces.TemplateLibrary?label=nuget&style=flat)](https://www.nuget.org/packages/Platform.Interfaces.TemplateLibrary) [![ConanCenter package](https://repology.org/badge/version-for-repo/conancenter/platform.interfaces.svg)](https://conan.io/center/platform.interfaces) | __C++__ | |-|-|-| From 081e1a7bc151912e36cbd983466ce4355c0a0d9d Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 12 Sep 2025 20:33:16 +0300 Subject: [PATCH 3/3] Remove CLAUDE.md - Claude command completed --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 6ce7f85..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/linksplatform/Interfaces/issues/139 -Your prepared branch: issue-139-6bab94f7 -Your prepared working directory: /tmp/gh-issue-solver-1757698169243 - -Proceed. \ No newline at end of file