Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aliasing languages like C/C++, Java/Kotlin, and JS/TS #1883

Merged
merged 4 commits into from Sep 15, 2023

Conversation

henrymercer
Copy link
Contributor

This PR adds support for the c-cpp, java-kotlin, and javascript-typescript aliases for C/C++, Java/Kotlin, and JavaScript/TypeScript analysis. To ensure a consistent experience across all CodeQL products, we implemented these aliases in the CLI, so this PR is really just exposing that functionality.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

@henrymercer henrymercer requested a review from a team as a code owner September 14, 2023 15:19
angelapwen
angelapwen previously approved these changes Sep 14, 2023
Copy link
Contributor

@angelapwen angelapwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving to unblock, but have a couple of comments. Please feel free to get approval from another 🇪🇺 person once addressed!

/**
* Versions 2.14.4+ of the CodeQL CLI support language aliasing.
*/
export const CODEQL_VERSION_LANGUAGE_ALIASING = "2.14.4";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm.. should we bump this to 2.14.5 given its rollout on dotcom was stopped and bumped directly to 2.14.5?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.14.5 is identical to 2.14.4 apart from a JavaScript fix, so I think it's fine to use 2.14.4 here. As you say though, it doesn't affect that many customers.

src/config-utils.ts Show resolved Hide resolved
pr-checks/checks/language-aliases.yml Outdated Show resolved Hide resolved
@@ -5,6 +5,7 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
## [UNRELEASED]

- Update default CodeQL bundle version to 2.14.5. [#1882](https://github.com/github/codeql-action/pull/1882)
- Enable the following language aliases when using CodeQL 2.14.4 and later: `c-cpp` for C/C++ analysis, `java-kotlin` for Java/Kotlin analysis, and `javascript-typescript` for JavaScript/TypeScript analysis. [#1883](https://github.com/github/codeql-action/pull/1883)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment as above on whether we want to move this to 2.14.5.

@henrymercer henrymercer merged commit f3051ed into main Sep 15, 2023
345 checks passed
@henrymercer henrymercer deleted the henrymercer/language-aliasing branch September 15, 2023 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants