Add warning and update PR checks for Swift on Linux by angelapwen · Pull Request #2399 · github/codeql-action (original) (raw)
We are deprecating Swift support on Linux for code scanning (changenote in #2403).
This PR logs a warning for users in the init Action if it's determined that Swift on Linux is being run.
This change also updates the manual build script build.sh which we also use in internal repositories for testing: the swift command will only be run on MacOS rather than on both MacOS and Linux.
As a result, we can also update our PR checks that only test on Linux, to remove the setup-swift Action step as it is no longer needed; and other checks that look for the existence of Swift databases on Linux.
I've removed Swift analysis using a custom build command check on Linux images from required checks for main, releases/v3, and releases/v2 already as well.