Skip to content

Commit a12b868

Browse files
committed
Create feature flag for merging SARIF files using the CLI
1 parent 3d81734 commit a12b868

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

lib/feature-flags.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/feature-flags.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/feature-flags.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export interface FeatureEnablement {
4444
* Each value of this enum should end with `_enabled`.
4545
*/
4646
export enum Feature {
47+
CliSarifMerge = "cli_sarif_merge_enabled",
4748
CppDependencyInstallation = "cpp_dependency_installation_enabled",
4849
CppTrapCachingEnabled = "cpp_trap_caching_enabled",
4950
DisableJavaBuildlessEnabled = "disable_java_buildless_enabled",
@@ -58,6 +59,13 @@ export const featureConfig: Record<
5859
Feature,
5960
{ envVar: string; minimumVersion: string | undefined; defaultValue: boolean }
6061
> = {
62+
[Feature.CliSarifMerge]: {
63+
envVar: "CODEQL_ACTION_CLI_SARIF_MERGE",
64+
// This feature is only supported in 2.17.0, but we'll want to test this feature
65+
// with nightly builds before that. We'll update this to 2.17.0 once it's released.
66+
minimumVersion: undefined,
67+
defaultValue: false,
68+
},
6169
[Feature.CppDependencyInstallation]: {
6270
envVar: "CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES",
6371
minimumVersion: "2.15.0",

0 commit comments

Comments
 (0)