Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2f9124f

Browse files
committed
add missing qldoc
1 parent eb00da5 commit 2f9124f

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

javascript/ql/src/semmle/javascript/security/dataflow/BuildArtifactLeak.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
import javascript
1111

12+
/**
13+
* Classes and predicates for storage of sensitive information in build artifact query.
14+
*/
1215
module BuildArtifactLeak {
1316
import BuildArtifactLeakCustomizations::BuildArtifactLeak
1417
import CleartextLoggingCustomizations::CleartextLogging as CleartextLogging
@@ -27,7 +30,9 @@ module BuildArtifactLeak {
2730
sink.(Sink).getLabel() = lbl
2831
}
2932

30-
override predicate isSanitizer(DataFlow::Node node) { node instanceof CleartextLogging::Barrier }
33+
override predicate isSanitizer(DataFlow::Node node) {
34+
node instanceof CleartextLogging::Barrier
35+
}
3136

3237
override predicate isSanitizerEdge(DataFlow::Node pred, DataFlow::Node succ) {
3338
CleartextLogging::isSanitizerEdge(pred, succ)

javascript/ql/src/semmle/javascript/security/dataflow/BuildArtifactLeakCustomizations.qll

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
/**
2-
* Provides default sources, sinks and sanitizers for reasoning about
3-
* storage of sensitive information in build artifact, as well as extension
4-
* points for adding your own.
2+
* Provides default sinks for reasoning about storage of sensitive information
3+
* in build artifact, as well as extension points for adding your own.
54
*/
65

76
import javascript
87
private import semmle.javascript.dataflow.InferredTypes
98
private import semmle.javascript.security.SensitiveActions::HeuristicNames
109

10+
/**
11+
* Sinks for storage of sensitive information in build artifact.
12+
*/
1113
module BuildArtifactLeak {
1214
/**
1315
* A data flow sink for clear-text logging of sensitive information.
1416
*/
1517
abstract class Sink extends DataFlow::Node {
18+
/**
19+
* Gets a data-flow label that leaks information for this sink.
20+
*/
1621
DataFlow::FlowLabel getLabel() { result.isTaint() }
1722
}
1823

0 commit comments

Comments
 (0)