File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1026,7 +1026,7 @@ test("does not pass a code scanning config or qlconfig file to the CLI when CLI
1026
1026
1027
1027
// should not have passed a qlconfig file
1028
1028
const hasQlconfigArg = args . some ( ( arg : string ) =>
1029
- arg . startsWith ( "--qlconfig=" )
1029
+ arg . startsWith ( "--qlconfig-file =" )
1030
1030
) ;
1031
1031
t . false ( hasQlconfigArg , "Should NOT have passed a qlconfig file" ) ;
1032
1032
} ) ;
@@ -1056,7 +1056,7 @@ test("passes a code scanning config AND qlconfig to the CLI when CLI config pass
1056
1056
1057
1057
// should have passed a qlconfig file
1058
1058
const hasQlconfigArg = args . some ( ( arg : string ) =>
1059
- arg . startsWith ( "--qlconfig=" )
1059
+ arg . startsWith ( "--qlconfig-file =" )
1060
1060
) ;
1061
1061
t . truthy ( hasQlconfigArg , "Should have injected a codescanning config" ) ;
1062
1062
} ) ;
@@ -1083,7 +1083,7 @@ test("passes a code scanning config BUT NOT a qlconfig to the CLI when CLI confi
1083
1083
1084
1084
// should have passed a qlconfig file
1085
1085
const hasQlconfigArg = args . some ( ( arg : string ) =>
1086
- arg . startsWith ( "--qlconfig=" )
1086
+ arg . startsWith ( "--qlconfig-file =" )
1087
1087
) ;
1088
1088
t . false ( hasQlconfigArg , "Should have injected a codescanning config" ) ;
1089
1089
} ) ;
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ export const CODEQL_VERSION_BETTER_RESOLVE_LANGUAGES = "2.10.3";
291
291
export const CODEQL_VERSION_SECURITY_EXPERIMENTAL_SUITE = "2.12.1" ;
292
292
293
293
/**
294
- * Versions 2.12.4+ of the CodeQL CLI support the `--qlconfig` flag in calls to `database init`.
294
+ * Versions 2.12.4+ of the CodeQL CLI support the `--qlconfig-file ` flag in calls to `database init`.
295
295
*/
296
296
export const CODEQL_VERSION_INIT_WITH_QLCONFIG = "2.12.4" ;
297
297
@@ -621,7 +621,7 @@ export async function getCodeQLForCmd(
621
621
if (
622
622
await util . codeQlVersionAbove ( this , CODEQL_VERSION_INIT_WITH_QLCONFIG )
623
623
) {
624
- extraArgs . push ( `--qlconfig=${ qlconfigFile } ` ) ;
624
+ extraArgs . push ( `--qlconfig-file =${ qlconfigFile } ` ) ;
625
625
}
626
626
await runTool (
627
627
cmd ,
You can’t perform that action at this time.
0 commit comments