Skip to content

Commit 6f8805e

Browse files
committed
Default setup env vars: Restrict results to src
1 parent 4fc0f3e commit 6f8805e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

queries/default-setup-environment-variables.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ predicate envVarRead(DataFlow::Node node, string envVar) {
4343
from DataFlow::Node read, string envVar
4444
where
4545
envVarRead(read, envVar) and
46+
read.getFile().getRelativePath().matches("src/%") and
4647
not read.getFile().getBaseName().matches("%.test.ts") and
4748
not isSafeForDefaultSetup(envVar)
4849
select read,

0 commit comments

Comments
 (0)