feat: add automod start_thread action (#274)

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-10-31 15:27:00 +00:00 committed by GitHub
parent 92dfbca362
commit f9c0e661af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 100 additions and 0 deletions

View file

@ -167,6 +167,9 @@ const configPreprocessor: ConfigPreprocessorFn<AutomodPluginType> = (options) =>
if (rule["actions"]["log"] == null) {
rule["actions"]["log"] = true;
}
if (rule["actions"]["clean"] && rule["actions"]["start_thread"]) {
throw new StrictValidationError([`Cannot have both clean and start_thread at rule '${rule.name}'`]);
}
}
}
}