mirror of
https://github.com/github/codeql-action.git
synced 2025-12-24 08:10:06 +08:00
Mark result of appendExtraQueryExclusions as Readonly to prevent further modification
This commit is contained in:
6
lib/upload-lib.js
generated
6
lib/upload-lib.js
generated
@@ -89411,10 +89411,10 @@ async function getConfig(tempDir, logger) {
|
||||
return JSON.parse(configString);
|
||||
}
|
||||
function appendExtraQueryExclusions(extraQueryExclusions, cliConfig) {
|
||||
if (extraQueryExclusions.length === 0) {
|
||||
return cliConfig;
|
||||
}
|
||||
const augmentedConfig = cloneObject(cliConfig);
|
||||
if (extraQueryExclusions.length === 0) {
|
||||
return augmentedConfig;
|
||||
}
|
||||
augmentedConfig["query-filters"] = [
|
||||
// Ordering matters. If the first filter is an inclusion, it implicitly
|
||||
// excludes all queries that are not included. If it is an exclusion,
|
||||
|
||||
Reference in New Issue
Block a user