mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Forward category input to codeql cli
This commit is contained in:
@@ -94,7 +94,8 @@ export interface CodeQL {
|
||||
querySuite: string,
|
||||
memoryFlag: string,
|
||||
addSnippetsFlag: string,
|
||||
threadsFlag: string
|
||||
threadsFlag: string,
|
||||
automationDetailsId: string | undefined
|
||||
): Promise<void>;
|
||||
}
|
||||
|
||||
@@ -671,7 +672,8 @@ function getCodeQLForCmd(cmd: string): CodeQL {
|
||||
querySuite: string,
|
||||
memoryFlag: string,
|
||||
addSnippetsFlag: string,
|
||||
threadsFlag: string
|
||||
threadsFlag: string,
|
||||
automationDetailsId: string | undefined
|
||||
) {
|
||||
const args = [
|
||||
"database",
|
||||
@@ -689,6 +691,9 @@ function getCodeQLForCmd(cmd: string): CodeQL {
|
||||
if (extraSearchPath !== undefined) {
|
||||
args.push("--search-path", extraSearchPath);
|
||||
}
|
||||
if (automationDetailsId !== undefined) {
|
||||
args.push("--sarif-category", automationDetailsId);
|
||||
}
|
||||
args.push(querySuite);
|
||||
await new toolrunner.ToolRunner(cmd, args).exec();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user