mirror of
https://github.com/github/codeql-action.git
synced 2026-10-29 17:17:15 +00:00
Add the --threads config option to finalize db (#281)
This flag is already being used for `runQueries`, so let's use it for finalize as well.
This commit is contained in:
@@ -74,7 +74,7 @@ export interface CodeQL {
|
||||
/**
|
||||
* Finalize a database using 'codeql database finalize'.
|
||||
*/
|
||||
finalizeDatabase(databasePath: string): Promise<void>;
|
||||
finalizeDatabase(databasePath: string, threadsFlag: string): Promise<void>;
|
||||
/**
|
||||
* Run 'codeql resolve queries'.
|
||||
*/
|
||||
@@ -561,12 +561,13 @@ function getCodeQLForCmd(cmd: string): CodeQL {
|
||||
errorMatchers
|
||||
);
|
||||
},
|
||||
async finalizeDatabase(databasePath: string) {
|
||||
async finalizeDatabase(databasePath: string, threadsFlag: string) {
|
||||
await toolrunnerErrorCatcher(
|
||||
cmd,
|
||||
[
|
||||
"database",
|
||||
"finalize",
|
||||
threadsFlag,
|
||||
...getExtraOptionsFromEnv(["database", "finalize"]),
|
||||
databasePath,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user