sisoe24 / nukeserversocket

Audit: Starting a process with a partial executable path BAN-B607
Security
Minor
2 occurrences in this check
Starting a process with a partial executable path
17
18
19def bump_version(version: str) -> None:
20    version = subprocess.run(21        ['poetry', 'version', '-s', version], cwd=CWD, capture_output=True22    ).stdout.decode().strip()23
24    with open(CWD / 'nukeserversocket' / 'version.py', 'w') as f:
25        f.write(f"__version__ = '{version}'")
Starting a process with a partial executable path
10
11
12def build() -> None:
13    subprocess.run(14        ['git', 'archive', '-o', f'{DIST}/nukeserversocket.zip', 'HEAD'],15        cwd=CWD16    )17
18
19def bump_version(version: str) -> None: