Skip to content

Fix failing CodeQL "Analyze (c-cpp)" job by adding custom workflow#11

Draft
alminveh with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-analyze-c-cpp-job
Draft

Fix failing CodeQL "Analyze (c-cpp)" job by adding custom workflow#11
alminveh with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-analyze-c-cpp-job

Conversation

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown

GitHub's dynamic CodeQL auto-detection flagged this iOS repo for c-cpp analysis because it found .h headers bundled inside the pre-built DragonMedicalSpeechKit.xcframework binary. Since there are no actual C/C++ source files, the extractor failed with Extraction failed: No source files found on ubuntu-latest.

Changes

  • Add .github/workflows/codeql.yml — custom CodeQL workflow that overrides the broken dynamic one:
    • Language: swift (correct for this repo; covers both .swift and .m source in samples)
    • Runner: macos-latest (required for Swift/ObjC analysis)
    • Build mode: autobuild (replaces the none mode that left the extractor with nothing to scan)
matrix:
  include:
    - language: swift
      build-mode: autobuild
runs-on: macos-latest

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.
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Analyze (c-cpp) Fix failing CodeQL "Analyze (c-cpp)" job by adding custom workflow Jun 10, 2026
Copilot AI requested a review from alminveh June 10, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants