mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Always use force: true for del
This commit is contained in:
2
lib/util.js
generated
2
lib/util.js
generated
@@ -496,7 +496,7 @@ async function bundleDb(config, language, codeql) {
|
||||
// from somewhere else or someone trying to make the action upload a
|
||||
// non-database file.
|
||||
if (fs.existsSync(databaseBundlePath)) {
|
||||
await (0, del_1.default)(databaseBundlePath);
|
||||
await (0, del_1.default)(databaseBundlePath, { force: true });
|
||||
}
|
||||
await codeql.databaseBundle(databasePath, databaseBundlePath);
|
||||
return databaseBundlePath;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user