Skip to content

Allow using new CodeQL languages without updating the CodeQL Action #2914

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

Merged
merged 15 commits into from
Aug 6, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/languages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/languages.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions src/languages.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/** A language supported by CodeQL. */
export type Language = string;
Copy link
Member

Choose a reason for hiding this comment

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

Minor: Technically this now represents any language identifier, whether supported or not


/**
* A CodeQL language.
* A language supported by CodeQL that is treated specially by the Action.
*
* To facilitate adding new languages, this is a typedef rather than an
* exhaustive list of languages supported by CodeQL.
* This is not an exhaustive list of languages supported by CodeQL and new
* languages do not need to be added here.
*/
export type Language = string;

export enum KnownLanguage {
csharp = "csharp",
cpp = "cpp",
Expand Down