Always use force: true for del

This commit is contained in:
Andrew Eisenberg
2021-12-08 15:37:43 -08:00
parent 924a64d2e0
commit 67d11b5928
3 changed files with 3 additions and 3 deletions

View File

@@ -566,7 +566,7 @@ export async function bundleDb(
// from somewhere else or someone trying to make the action upload a
// non-database file.
if (fs.existsSync(databaseBundlePath)) {
await del(databaseBundlePath);
await del(databaseBundlePath, { force: true });
}
await codeql.databaseBundle(databasePath, databaseBundlePath);
return databaseBundlePath;