MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / node_Compare

Method node_Compare

aura/analyzers/python/secrets.py:93–107  ·  view source on GitHub ↗
(self, context)

Source from the content-addressed store, hash-verified

91 yield from self._gen_hit(context, name=k, secret=v, type="url")
92
93 def node_Compare(self, context):
94 if not len(context.node.ops) == 1:
95 return
96 elif not context.node.ops[0]["_type"] == "Eq":
97 return
98
99 if type(context.node.left) == str:
100 var = context.node.left
101
102 if not isinstance(context.node.comparators[0], (str, String)):
103 return
104
105 value = str(context.node.comparators[0])
106 if SECRET_REGEX.match(var):
107 yield from self._gen_hit(context, name=var, secret=value)

Callers

nothing calls this directly

Calls 2

_gen_hitMethod · 0.95
matchMethod · 0.45

Tested by

no test coverage detected