Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #517 from github/aibaars-additional-packs
Use --additional-packs instead of --search-path
Andrew Eisenberg authored and GitHub committed May 21, 2021
2 parents 1ad5a6c + c3e0f88 commit eeaefb6
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/codeql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/codeql.js.map
4 changes: 2 additions & 2 deletions src/codeql.ts
@@ -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);

0 comments on commit eeaefb6

Please sign in to comment.