mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
ThreatModels: Expose knownThreatModel
Without, it's impossible to write test showing what threat-models are active by default... unless I provide a hardcoded list in the test itself, which is not any fun.
This commit is contained in:
@@ -29,7 +29,7 @@ extensible predicate threatModelConfiguration(string kind, boolean enable, int p
|
||||
extensible private predicate threatModelGrouping(string kind, string group);
|
||||
|
||||
/** Holds if the specified threat model kind is mentioned in either the configuration or grouping table. */
|
||||
private predicate knownThreatModel(string kind) {
|
||||
predicate knownThreatModel(string kind) {
|
||||
threatModelConfiguration(kind, _, _) or
|
||||
threatModelGrouping(kind, _) or
|
||||
threatModelGrouping(_, kind) or
|
||||
|
||||
Reference in New Issue
Block a user