github / codeql-action

Actions for running CodeQL analysis
MIT License
1.09k stars 305 forks source link

PR check generator: add `excludeOsAndVersionCombination` #2350

Closed angelapwen closed 3 weeks ago

angelapwen commented 3 weeks ago

We often need to exclude specific combinations of CLI versions + operating systems. Previously there was no easy way to do this: we would run all CLI versions specified against all operating systems specified. This change adds the excludeOsAndVersionCombination parameter to do just that!

To test, I re-enabled Swift on Linux for CLI v >= 2.17.4, which remained as a to-do item after we disabled those checks in https://github.com/github/codeql-action/pull/2299. Note that default, linked, and nightly-latest are all now current enough to re-enable those. The new generator script allows us to exclude all older CLI versions on Linux.

I'll update the required PR checks once this PR is approved ✅

Merge / deployment checklist

angelapwen commented 3 weeks ago

Updated the branch protection rules accordingly for main, releases/v2, and releases/v3.