Delete bundled db before recreating
This commit is contained in:
parent
460d053698
commit
c82e09aa41
6 changed files with 26 additions and 8 deletions
5
lib/database-upload.js
generated
5
lib/database-upload.js
generated
|
|
@ -62,7 +62,10 @@ async function uploadDatabases(repositoryNwo, config, apiDetails, logger) {
|
|||
}
|
||||
const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
|
||||
for (const language of config.languages) {
|
||||
// Upload the database bundle
|
||||
// Upload the database bundle.
|
||||
// Although we are uploading arbitrary file contents to the API, it's worth
|
||||
// noting that it's the API's job to validate that the contents is acceptable.
|
||||
// This API method is available to anyone with write access to the repo.
|
||||
const payload = fs.readFileSync(await (0, util_1.bundleDb)(config, language, codeql));
|
||||
try {
|
||||
if (useUploadDomain) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue