fix(scripts): prevent command injection in check-quality-gates.py #10635

Merged
HAL9000 merged 2 commits from fix/v370/quality-gates-command-injection into master 2026-06-10 11:30:55 +00:00

2 Commits

Author SHA1 Message Date
HAL9000 bcc4400080 style: apply ruff format to fix CI lint failure
CI / lint (pull_request) Successful in 36s
CI / typecheck (pull_request) Successful in 1m0s
CI / quality (pull_request) Successful in 1m26s
CI / security (pull_request) Successful in 1m55s
CI / build (pull_request) Successful in 34s
CI / helm (pull_request) Successful in 38s
CI / push-validation (pull_request) Successful in 42s
CI / unit_tests (pull_request) Successful in 5m41s
CI / integration_tests (pull_request) Successful in 9m34s
CI / docker (pull_request) Successful in 1m42s
CI / coverage (pull_request) Successful in 11m2s
CI / status-check (pull_request) Successful in 3s
2026-06-10 05:05:40 -04:00
HAL9000 97b5424bd2 fix(scripts): validate subprocess path arguments in check-quality-gates.py to prevent command injection
Validate quality-gate subprocess path arguments against a safe allowlist, resolve them inside the project root, and require referenced paths to exist before command execution.

Harden the command-injection regression feature so it loads the script reliably, avoids generic Behave step collisions, verifies path arguments are resolved before subprocess execution, and carries the mandatory TDD issue tag.

ISSUES CLOSED: #7286
2026-06-10 05:05:40 -04:00