Create feature flag for merging SARIF files using the CLI
This commit is contained in:
parent
3d817349a4
commit
a12b868bbc
3 changed files with 17 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ export interface FeatureEnablement {
|
|||
* Each value of this enum should end with `_enabled`.
|
||||
*/
|
||||
export enum Feature {
|
||||
CliSarifMerge = "cli_sarif_merge_enabled",
|
||||
CppDependencyInstallation = "cpp_dependency_installation_enabled",
|
||||
CppTrapCachingEnabled = "cpp_trap_caching_enabled",
|
||||
DisableJavaBuildlessEnabled = "disable_java_buildless_enabled",
|
||||
|
|
@ -58,6 +59,13 @@ export const featureConfig: Record<
|
|||
Feature,
|
||||
{ envVar: string; minimumVersion: string | undefined; defaultValue: boolean }
|
||||
> = {
|
||||
[Feature.CliSarifMerge]: {
|
||||
envVar: "CODEQL_ACTION_CLI_SARIF_MERGE",
|
||||
// This feature is only supported in 2.17.0, but we'll want to test this feature
|
||||
// with nightly builds before that. We'll update this to 2.17.0 once it's released.
|
||||
minimumVersion: undefined,
|
||||
defaultValue: false,
|
||||
},
|
||||
[Feature.CppDependencyInstallation]: {
|
||||
envVar: "CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES",
|
||||
minimumVersion: "2.15.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue