mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 01:49:43 +00:00
Add the overwrite flag when init-ing databases
This ensures that if there is a database already in the filesystem, we can gracefully handle creating a new one. This sometimes happens when a user is on a self-hosted runner and neglects to clean state across runs.
This commit is contained in:
1
lib/codeql.js
generated
1
lib/codeql.js
generated
@@ -301,6 +301,7 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
await runTool(cmd, [
|
||||
"database",
|
||||
"init",
|
||||
"--overwrite",
|
||||
"--db-cluster",
|
||||
config.dbLocation,
|
||||
`--source-root=${sourceRoot}`,
|
||||
|
||||
Reference in New Issue
Block a user