Skip to content

Allow Swift to be run on ubuntu runners #3870

Description

@rzuckerm

It would be nice if the CodeQL action could be run on ubuntu runners. The macos runners are incredible slow. For this run it is taking 10 minutes just to build the Swift samples, and there are not that many.

Activity

  1. mbg commented on May 3, 2026

    @mbg
    Member

    Hi @rzuckerm,

    The CodeQL Action works on Ubuntu/Linux, macOS, and Windows runners.

    However, CodeQL itself only supports analysing Swift on macOS.

    The team that looks after Swift support for CodeQL is aware that analyses can be slow, as well as the underlying reasons, and is investigating options for speeding things up.

  2. pascalecu commented on May 3, 2026

    @pascalecu

    So how come https://techtoaster.io/codeql-swift-code-scanning-on-linux-x86_64/ was able to make it work on Linux? what are the specific things that force CodeQL to work on macOS, considering Swift on Linux has been here for quite a while?

  3. coadaflorin commented on May 5, 2026

    @coadaflorin
    Contributor

    While we never officially supported scanning Swift on Linux, the ability to scan Swift on Linux did exist in CodeQL. The intent behind supporting Swift was to extend security testing to mobile applications for iOs. As CodeQL required a working build in order to scan an iOs application, and macOS is the go to for most iOs developers, we decided to officially support scanning Swift code only on macOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions