CodeQL Limits Traced Builds on macOS 27

Daily Code Guide GitHub News

GitHub has documented a breaking change for CodeQL users adopting macOS 27 or Xcode 27. Apple no longer includes Intel code in some system binaries and libraries that CodeQL relies on to trace builds. As a result, traced extraction is unavailable with Xcode 27—and may be unavailable on macOS 27—for several compiled languages.

The change affects security-analysis coverage rather than application execution itself. Teams that depend on CodeQL traced builds should review their GitHub Actions runner and Xcode selections before moving to the newer toolchain. Swift teams have a separate compatibility issue: CodeQL does not support Swift 6.4 on any platform.

What changed in CodeQL support

According to GitHub’s announcement, macOS 27 and Xcode 27 omit Intel, or x86_64, code from some system components used by CodeQL during traced builds. The announcement does not identify the specific binaries or libraries involved.

When Xcode 27 is installed, traced extraction is unavailable for C/C++, C#, Go, Java, Kotlin, and Swift. On macOS 27, traced extraction may be unavailable for those same languages. Traced extraction records compiler and build information while a project is built, allowing CodeQL to create a more complete representation of the code for analysis.

This does not mean that all CodeQL functionality fails on macOS 27 or Xcode 27. The documented impact is specifically on traced extraction, and the exact behavior may depend on the installation and workflow. The supplied documentation does not establish that every macOS 27 or Xcode 27 environment behaves identically.

Ad

Swift 6.4 is unsupported on every platform

Swift projects face an additional limitation independent of the macOS and Xcode runner issue. CodeQL does not support Swift 6.4 on any platform, and the available documentation does not identify an alternative Swift toolchain that supports this version.

For Swift analysis, CodeQL documents macOS runners together with either autobuild or manual build modes. The supported build commands include xcodebuild and swift build. However, switching to a no-build configuration is not documented as a Swift workaround, so teams should not treat none mode as an option for Swift scanning.

Runner images provide versioned targets

GitHub’s runner-image documentation lists an arm64 image for Xcode 27 running on macOS 27. The image uses Xcode 27.0 as its default and includes additional Xcode 27 releases. The same documentation lists a macOS 26 arm64 image with multiple Xcode 26 versions, including Xcode 26.6 as the default.

These images give administrators concrete version targets, but they do not form a complete compatibility matrix for every runner and toolchain combination. GitHub recommends pinning both the runner image and the toolchain instead of relying on moving labels or latest-version defaults.

There is also a separate timeline for GitHub Actions Intel runners. An official runner-image announcement says that the macos-15-intel image is intended to remain available until August 2027 and will be the last x86_64 image provided by Actions. That is a statement about runner availability, not a guarantee that CodeQL will continue to support Intel-based Macs. CodeQL support for Intel-based Macs is scheduled for deprecation in mid-December 2026, so the two dates should not be conflated.

Build mode options for affected languages

For C/C++, C#, and Java, CodeQL supports none build mode. This mode avoids build tracing and is specifically identified as an option for the affected scenario. It may allow some scans to continue when traced extraction is unavailable.

However, none mode is not equivalent to traced extraction, autobuild, or a manual build. CodeQL’s documentation warns that no-build analysis can be less accurate than autobuild or manual build steps in some circumstances. Teams should therefore validate the results against the needs of the repository before adopting it broadly.

The supplied guidance does not establish none mode as a general workaround for Go, Kotlin, or Swift. In particular, Swift workflows must continue to use the documented autobuild or manual modes, subject to the separate Swift 6.4 support limitation.

What you should do

  1. Audit workflow versions. Look for macOS 27 and Xcode 27 selections, Swift 6.4 projects, Intel runner labels, and CodeQL workflows that depend on traced extraction.
  2. Pin compatible versions. For workflows that require traced builds or scan Swift, follow GitHub’s recommendation to use macOS 26 or earlier and Xcode 26 or earlier. Pin the runner image and Xcode or Swift toolchain explicitly rather than depending on latest-version behavior.
  3. Evaluate build mode for C/C++, C#, and Java. Where moving back to macOS 26 or Xcode 26 is not practical, test none mode for the supported languages. Compare its results with the repository’s existing analysis and account for the possible accuracy reduction.
  4. Review Swift pipelines separately. Do not assume that changing the build mode resolves Swift 6.4 incompatibility. Swift scanning requires a macOS runner and an autobuild or manual build configuration, but CodeQL does not support Swift 6.4.
  5. Plan around the Intel-support date. The planned August 2027 availability of the macOS-15-intel Actions image should not be used as evidence of CodeQL compatibility after the mid-December 2026 CodeQL deprecation milestone.

Manual build steps require CodeQL advanced setup. The appropriate configuration depends on the project and language, so a workflow should not be changed from traced or autobuild analysis to no-build analysis without checking the resulting coverage.

Why the change matters for security operations

The immediate concern is continuity and completeness of CodeQL analysis. If a workflow can no longer perform traced extraction, or if it switches to a less accurate build mode, the repository may receive different vulnerability-analysis coverage. That is an operational security consideration, not a statement that macOS 27, Xcode 27, or Swift 6.4 introduces a vulnerability or exploit.

Teams should record the runner image, Xcode version, Swift version, and CodeQL build mode used by each scan. Explicit versioning makes it easier to identify whether a change in scan behavior came from the operating system, toolchain, runner architecture, or build configuration.

Sources

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Ad
Ad
Ad