mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Merge pull request #3340 from github/kaspersv/check-for-overlayBaseSpecifier
Overlay: Check database metadata for overlayBaseSpecifier
This commit is contained in:
17
lib/upload-lib.js
generated
17
lib/upload-lib.js
generated
@@ -88697,6 +88697,23 @@ ${output}`
|
||||
);
|
||||
}
|
||||
},
|
||||
async resolveDatabase(databasePath) {
|
||||
const codeqlArgs = [
|
||||
"resolve",
|
||||
"database",
|
||||
databasePath,
|
||||
"--format=json",
|
||||
...getExtraOptionsFromEnv(["resolve", "database"])
|
||||
];
|
||||
const output = await runCli(cmd, codeqlArgs, { noStreamStdout: true });
|
||||
try {
|
||||
return JSON.parse(output);
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`Unexpected output from codeql resolve database --format=json: ${e}`
|
||||
);
|
||||
}
|
||||
},
|
||||
async mergeResults(sarifFiles, outputFile, {
|
||||
mergeRunsFromEqualCategory = false
|
||||
}) {
|
||||
|
||||
Reference in New Issue
Block a user