Merge pull request #517 from github/aibaars-additional-packs
Use --additional-packs instead of --search-path
This commit is contained in:
commit
eeaefb6054
3 changed files with 5 additions and 5 deletions
4
lib/codeql.js
generated
4
lib/codeql.js
generated
|
|
@ -427,7 +427,7 @@ function getCodeQLForCmd(cmd) {
|
|||
...getExtraOptionsFromEnv(["resolve", "queries"]),
|
||||
];
|
||||
if (extraSearchPath !== undefined) {
|
||||
codeqlArgs.push("--search-path", extraSearchPath);
|
||||
codeqlArgs.push("--additional-packs", extraSearchPath);
|
||||
}
|
||||
let output = "";
|
||||
await new toolrunner.ToolRunner(cmd, codeqlArgs, {
|
||||
|
|
@ -457,7 +457,7 @@ function getCodeQLForCmd(cmd) {
|
|||
...getExtraOptionsFromEnv(["database", "analyze"]),
|
||||
];
|
||||
if (extraSearchPath !== undefined) {
|
||||
args.push("--search-path", extraSearchPath);
|
||||
args.push("--additional-packs", extraSearchPath);
|
||||
}
|
||||
if (automationDetailsId !== undefined) {
|
||||
args.push("--sarif-category", automationDetailsId);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -666,7 +666,7 @@ function getCodeQLForCmd(cmd: string): CodeQL {
|
|||
...getExtraOptionsFromEnv(["resolve", "queries"]),
|
||||
];
|
||||
if (extraSearchPath !== undefined) {
|
||||
codeqlArgs.push("--search-path", extraSearchPath);
|
||||
codeqlArgs.push("--additional-packs", extraSearchPath);
|
||||
}
|
||||
let output = "";
|
||||
await new toolrunner.ToolRunner(cmd, codeqlArgs, {
|
||||
|
|
@ -706,7 +706,7 @@ function getCodeQLForCmd(cmd: string): CodeQL {
|
|||
...getExtraOptionsFromEnv(["database", "analyze"]),
|
||||
];
|
||||
if (extraSearchPath !== undefined) {
|
||||
args.push("--search-path", extraSearchPath);
|
||||
args.push("--additional-packs", extraSearchPath);
|
||||
}
|
||||
if (automationDetailsId !== undefined) {
|
||||
args.push("--sarif-category", automationDetailsId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue