Predicate threatModelConfiguration
Holds configuration entries to specify which threat models are enabled.
kind- Specifies the threat model to configure. This can be the name of a specific threat model (for example,environment), a group (local), orall.enable-trueto enable the specified threat model (and its children), orfalseto disable it.priority- The order in which the configuration should be applied. Lower values are applied first.
The final configuration is the result of processing each row in ascending order of its priority column.
For example:
{ kind: "all", enable: true, priority: 0 }{ kind: "remote", enable: false, priority: 1 }{ kind: "environment", enable: true, priority: 2 }This configuration first enables all threat models, then disables theremotegroup, and finally re-enables theenvironmentthreat model.
Import path
import codeql.threatmodels.ThreatModelspredicate threatModelConfiguration(string kind, boolean enable, int priority)