Upload CodeQL databases
This commit is contained in:
parent
b2d10b39b0
commit
146c897909
24 changed files with 981 additions and 24 deletions
10
lib/codeql.js
generated
10
lib/codeql.js
generated
|
|
@ -287,6 +287,7 @@ function setCodeQL(partialCodeql) {
|
|||
resolveQueries: resolveFunction(partialCodeql, "resolveQueries"),
|
||||
packDownload: resolveFunction(partialCodeql, "packDownload"),
|
||||
databaseCleanup: resolveFunction(partialCodeql, "databaseCleanup"),
|
||||
databaseBundle: resolveFunction(partialCodeql, "databaseBundle"),
|
||||
databaseRunQueries: resolveFunction(partialCodeql, "databaseRunQueries"),
|
||||
databaseInterpretResults: resolveFunction(partialCodeql, "databaseInterpretResults"),
|
||||
};
|
||||
|
|
@ -535,6 +536,15 @@ function getCodeQLForCmd(cmd) {
|
|||
];
|
||||
await runTool(cmd, codeqlArgs);
|
||||
},
|
||||
async databaseBundle(databasePath, outputFilePath) {
|
||||
const args = [
|
||||
"database",
|
||||
"bundle",
|
||||
databasePath,
|
||||
`--output=${outputFilePath}`,
|
||||
];
|
||||
await new toolrunner.ToolRunner(cmd, args).exec();
|
||||
},
|
||||
};
|
||||
}
|
||||
function packWithVersionToString(pack) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue