Skip to content

Commit eac5e24

Browse files
committed
Downgrade query severity to warning
1 parent 8065746 commit eac5e24

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

queries/default-setup-environment-variables.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name Some environment variables may not exist in default setup workflows
33
* @id javascript/codeql-action/default-setup-env-vars
44
* @kind problem
5-
* @severity error
5+
* @severity warning
66
*/
77

88
import javascript

queries/default-setup-event-context.ql

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @name Some context properties may not exist in default setup workflows
33
* @id javascript/codeql-action/default-setup-context-properties
44
* @kind path-problem
5-
* @severity error
5+
* @severity warning
66
*/
77

88
import javascript
@@ -49,16 +49,6 @@ class EventContextAccessConfiguration extends DataFlow::Configuration {
4949
}
5050
}
5151

52-
predicate deepPropertyRead(DataFlow::PropRead originalRead, DataFlow::PropRead read, int depth) {
53-
read = originalRead and depth = 1
54-
or
55-
exists(DataFlow::PropRead prevRead, int prevDepth |
56-
deepPropertyRead(originalRead, prevRead, prevDepth) and
57-
read = prevRead.getAPropertyRead() and
58-
depth = prevDepth + 1
59-
)
60-
}
61-
6252
from EventContextAccessConfiguration cfg, DataFlow::PathNode source, DataFlow::PathNode sink
6353
where
6454
cfg.hasFlowPath(source, sink) and

0 commit comments

Comments
 (0)