Update shared/threat-models/codeql/threatmodels/ThreatModels.qll

Co-authored-by: Michael Nebel <michaelnebel@github.com>
This commit is contained in:
Dave Bartolomeo
2023-10-26 13:46:28 -04:00
committed by GitHub
parent b3e5b86f0a
commit 8d9e4d391f

View File

@@ -70,7 +70,7 @@ private boolean threatModelExplicitState(string kind) {
*/
bindingset[kind]
predicate currentThreatModel(string kind) {
knownThreatModel(kind) and threatModelExplicitState(kind) = true
knownThreatModel(kind) and threatModelEnabled(kind)
or
// For any threat model kind not mentioned in the configuration or grouping tables, its state of
// enablement is controlled only by the entries that specifiy the "all" kind.