File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ private import codeql.threatmodels.ThreatModels
16
16
class ThreatModelSource extends DataFlow:: Node instanceof ThreatModelSource:: Range {
17
17
/**
18
18
* Gets a string that represents the source kind with respect to threat modeling.
19
+ *
20
+ *
21
+ * See
22
+ * - https://github.com/github/codeql/blob/main/docs/codeql/reusables/threat-model-description.rst
23
+ * - https://github.com/github/codeql/blob/main/shared/threat-models/ext/threat-model-grouping.model.yml
19
24
*/
20
25
string getThreatModel ( ) { result = super .getThreatModel ( ) }
21
26
@@ -34,6 +39,10 @@ module ThreatModelSource {
34
39
abstract class Range extends DataFlow:: Node {
35
40
/**
36
41
* Gets a string that represents the source kind with respect to threat modeling.
42
+ *
43
+ * See
44
+ * - https://github.com/github/codeql/blob/main/docs/codeql/reusables/threat-model-description.rst
45
+ * - https://github.com/github/codeql/blob/main/shared/threat-models/ext/threat-model-grouping.model.yml
37
46
*/
38
47
abstract string getThreatModel ( ) ;
39
48
@@ -45,11 +54,11 @@ module ThreatModelSource {
45
54
/**
46
55
* A data flow source that is enabled in the current threat model configuration.
47
56
*/
48
- class ActiveThreatModelSource extends DataFlow :: Node {
57
+ class ActiveThreatModelSource extends ThreatModelSource {
49
58
ActiveThreatModelSource ( ) {
50
59
exists ( string kind |
51
60
currentThreatModel ( kind ) and
52
- this .( ThreatModelSource ) . getThreatModel ( ) = kind
61
+ this .getThreatModel ( ) = kind
53
62
)
54
63
}
55
64
}
You can’t perform that action at this time.
0 commit comments