Use cache-cleanup command line option

The --mode command line option to has been renamed to --cache-cleanup
This commit is contained in:
Simon Friis Vindum 2024-08-28 16:48:01 +02:00
parent 7233ec5e6b
commit e4525acbcb
4 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ inputs:
# If changing this, make sure to update workflow.ts accordingly.
default: "always"
cleanup-level:
description: "Level of cleanup to perform on CodeQL databases at the end of the analyze step. This should either be 'none' to skip cleanup, or be a valid argument for the --mode flag of the CodeQL CLI command 'codeql database cleanup' as documented at https://codeql.github.com/docs/codeql-cli/manual/database-cleanup"
description: "Level of cleanup to perform on CodeQL databases at the end of the analyze step. This should either be 'none' to skip cleanup, or be a valid argument for the --cache-cleanup flag of the CodeQL CLI command 'codeql database cleanup' as documented at https://codeql.github.com/docs/codeql-cli/manual/database-cleanup"
required: false
default: "brutal"
ram:

2
lib/codeql.js generated
View file

@ -570,7 +570,7 @@ async function getCodeQLForCmd(cmd, checkVersion) {
"database",
"cleanup",
databasePath,
`--mode=${cleanupLevel}`,
`--cache-cleanup=${cleanupLevel}`,
...getExtraOptionsFromEnv(["database", "cleanup"]),
];
await runTool(cmd, codeqlArgs);

File diff suppressed because one or more lines are too long

View file

@ -970,7 +970,7 @@ export async function getCodeQLForCmd(
"database",
"cleanup",
databasePath,
`--mode=${cleanupLevel}`,
`--cache-cleanup=${cleanupLevel}`,
...getExtraOptionsFromEnv(["database", "cleanup"]),
];
await runTool(cmd, codeqlArgs);