Skip to content

Commit 5ff7b65

Browse files
committed
Python: Add links to threat-model docs
1 parent cbebf7b commit 5ff7b65

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python/ql/lib/semmle/python/Concepts.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ private import codeql.threatmodels.ThreatModels
2121
class ThreatModelSource extends DataFlow::Node instanceof ThreatModelSource::Range {
2222
/**
2323
* Gets a string that represents the source kind with respect to threat modeling.
24+
*
25+
* See
26+
* - https://github.com/github/codeql/blob/main/docs/codeql/reusables/threat-model-description.rst
27+
* - https://github.com/github/codeql/blob/main/shared/threat-models/ext/threat-model-grouping.model.yml
2428
*/
2529
string getThreatModel() { result = super.getThreatModel() }
2630

@@ -39,6 +43,10 @@ module ThreatModelSource {
3943
abstract class Range extends DataFlow::Node {
4044
/**
4145
* Gets a string that represents the source kind with respect to threat modeling.
46+
*
47+
* See
48+
* - https://github.com/github/codeql/blob/main/docs/codeql/reusables/threat-model-description.rst
49+
* - https://github.com/github/codeql/blob/main/shared/threat-models/ext/threat-model-grouping.model.yml
4250
*/
4351
abstract string getThreatModel();
4452

0 commit comments

Comments
 (0)