Skip to content

Use separate CodeQL workflow files for each language  #11655

Description

@jbampton

Discussion below:

Do we need to add more languages here?

Let us get this PR merged first before we add more languages and checks.

For example if we add the Java language to the matrix we may also need to implement "paths" or only run the Java CodeQL check when certain files change. These checks can sometimes take a while to run on the CI.

Also it is probably best to separate each language that we want to check into its own CodeQL workflow file and add all the "paths". For example:

  • java-codeql-analysis.yml
  • python-codeql-analysis.yml
  • actions-codeql-analysis.yml
  • etc

Using separate CodeQL workflow files for each language in a multi-language repository allows for tailored analysis and build processes. This approach is particularly useful when languages have different build requirements or when you want to apply specific queries or configurations to individual languages.

Our current analysis file:

https://github.com/apache/cloudstack/blob/main/.github/workflows/codeql-analysis.yml

Originally posted by @jbampton in #11300 (comment)

Activity

  1. added theissue type on Sep 17, 2025
  2. added this to the 4.23 milestone on Sep 17, 2025
  3. github-actions commented on Jan 16, 2026

    @github-actions

    This issue is stale because it has been open for 120 days with no activity. It may be removed by administrators of this project at any time. Remove the stale label or comment to request for removal of it to prevent this.

  4. modified the milestones: 4.23.0, 4.24.0 on Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions