Skip to content

enhancement: split out query packs #1367

Open
@mitchell-liatrio

Description

@mitchell-liatrio

One challenge we've seen with customers running CodeQL against large applications is the time to execute CodeQL scans. One potential solution is to split out the query packs to run separately.

ex.

  • Default (Security): Run all of the default queries provided by CodeQL
  • Security-Extended: Run all of the extended queries but do not run the default queries
  • Security-And-Quality: Run only the quality queries

This could be combined with a matrix strategy to run parallel jobs and optimize the total execution time of the workflow. I understand one limitation of this is new CodeQL packs would need to be published that support this pattern. However, it would be very beneficial for customers where PRs running over 10 minutes in their large legacy apps are considered a nonstarter for CodeQL as a long-term solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions