From ee971ac94986252f07277ac954c7ce5c37c52f37 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 12:24:25 +0000 Subject: [PATCH 1/2] Initial plan From f5f65c6c4b1983a3560705aad2b3369db6baaae8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 12:31:25 +0000 Subject: [PATCH 2/2] Add custom CodeQL workflow to fix failing Analyze (c-cpp) job The dynamic CodeQL auto-detected c-cpp from .h headers bundled inside the pre-built xcframework binary. Since there are no actual C/C++ source files to extract, the analysis failed with "No source files found". Replace the dynamic workflow with a custom .github/workflows/codeql.yml that correctly specifies the 'swift' language (covering both Swift and Objective-C source in the sample apps) and runs on macos-latest, which is required for iOS/Swift code analysis. --- .github/workflows/codeql.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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..aee1cc2 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,41 @@ +name: "CodeQL" + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + schedule: + - cron: '26 5 * * 1' + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: macos-latest + permissions: + security-events: write + packages: read + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: swift + build-mode: autobuild + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{ matrix.language }}"