Skip to content

Commit 6bb2199

Browse files
authored
Merge pull request #210 from Integration-Automation/fix/dependabot-deps
Fix Dependabot alerts: bump cryptography and starlette
2 parents 9093029 + 151c929 commit 6bb2199

5 files changed

Lines changed: 141 additions & 89 deletions

File tree

je_auto_control/utils/executor/flow_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def exec_random_to_var(executor: Any,
406406
args: Mapping[str, Any]) -> Dict[str, Any]:
407407
"""Store a random value (int / float / choice) in a flow variable."""
408408
import random
409-
rng = random.Random(args.get("seed"))
409+
rng = random.Random(args.get("seed")) # nosec B311 # reason: non-crypto test data
410410
kind = str(args.get("kind", "int"))
411411
if kind == "choice":
412412
value: Any = rng.choice(list(args.get("choices") or [None]))

je_auto_control/utils/humanize/motion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def humanized_path(start: Point, end: Point,
6060
is set.
6161
"""
6262
motion = motion or HumanizedMotion()
63-
rng = random.Random(motion.seed)
63+
rng = random.Random(motion.seed) # nosec B311 # reason: non-crypto motion jitter
6464
sx, sy = float(start[0]), float(start[1])
6565
ex, ey = float(end[0]), float(end[1])
6666
dx, dy = ex - sx, ey - sy

je_auto_control/utils/humanize/typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def humanized_key_delays(text: str, *, base_delay: float = 0.05,
2020
``pause_chance`` probability of an extra ``pause_delay`` (a human
2121
pausing to think). Deterministic when ``seed`` is set.
2222
"""
23-
rng = random.Random(seed)
23+
rng = random.Random(seed) # nosec B311 # reason: non-crypto typing jitter
2424
delays: List[float] = []
2525
for _ in text:
2626
delay = max(0.0, base_delay + rng.uniform(-jitter, jitter))

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies = [
2121
"python-Xlib==0.33;platform_system=='Linux'",
2222
"mss==10.2.0",
2323
"defusedxml==0.7.1",
24-
"cryptography>=42.0.0"
24+
"cryptography>=48.0.1"
2525
]
2626
classifiers = [
2727
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)