Skip to content

Commit 97ce1b0

Browse files
committed
Ignore test files in env vars query
1 parent ba5812e commit 97ce1b0

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+
not read.getFile().getBaseName().matches("%.test.ts") and
4647
not isSafeForDefaultSetup(envVar)
4748
select read,
4849
"The environment variable " + envVar +

0 commit comments

Comments
 (0)