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

Method node_Call

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

Source from the content-addressed store, hash-verified

44 yield hit
45
46 def node_Call(self, context):
47 f_name = context.node.cached_full_name
48
49 if f_name in ("requests.auth.HTTPBasicAuth", "requests.auth.HTTPDigestAuth"):
50 try:
51 signature = context.node.apply_signature(
52 "user",
53 "password",
54 aura_capture_args="args",
55 aura_capture_kwargs="kwargs",
56 )
57
58 if not isinstance(signature.args[0], (String, str)):
59 return
60 elif not isinstance(signature.args[1], (String, str)):
61 return
62
63 user = str(signature.args[0])
64 passwd = str(signature.args[1])
65
66 yield from self._gen_hit(context, user, passwd, extra={"type": "call"})
67 except TypeError:
68 return
69
70 def node_String(self, context):
71 if not URL_REGEX.match(context.node.value):

Callers

nothing calls this directly

Calls 2

_gen_hitMethod · 0.95
apply_signatureMethod · 0.80

Tested by

no test coverage detected