Files
awg-dash/backend/awg_api/_gate_probe.py
T
embeddevio da442a9bc6
ci / lint (push) Successful in 51s
contract-openapi / openapi-contract (push) Failing after 31s
contract-openapi / ts-client-is-current (push) Failing after 36s
ci / unit (push) Failing after 52s
ci / security (push) Failing after 4m26s
ci / build (push) Has been skipped
ci / image-scan (push) Has been skipped
ci / push (push) Has been skipped
test(ci): пробник HIGH-находки для bandit (B602), lint-чистый — Refs #17
2026-10-28 22:57:36 +03:00

16 lines
488 B
Python

"""CI probe: intentionally insecure module for the negative security-gate run.
Lives only on the ``ci/17-gate-negative`` branch (deleted together with it);
it is not present in ``main`` or ``feat/*``.
Contains a deliberately unsafe ``subprocess.call(..., shell=True)`` call —
bandit B602, severity HIGH.
"""
import subprocess
def run_probe(cmd: str) -> int:
"""Deliberately unsafe: shell=True (bandit B602 -> HIGH)."""
return subprocess.call(cmd, shell=True) # noqa: S602