ignore some bandit findings
All checks were successful
CI / test (push) Successful in 2m33s
Lint / test (push) Successful in 29s
Trivy / test (push) Successful in 22s

This commit is contained in:
Miguel Jacq 2026-01-02 10:11:09 +11:00
parent 0f6c2a3458
commit 7d6c2257d5
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9

View file

@ -3,7 +3,7 @@ from __future__ import annotations
import os import os
import sys import sys
import time import time
import subprocess import subprocess # nosec
from dataclasses import dataclass from dataclasses import dataclass
from pathlib import Path from pathlib import Path
@ -51,7 +51,7 @@ def _release_install_lock(lock_path: Path) -> None:
try: try:
lock_path.unlink(missing_ok=True) # Python 3.8+ lock_path.unlink(missing_ok=True) # Python 3.8+
except Exception: except Exception:
pass pass # nosec
def _install_chromium(browsers_path: Path, with_deps: bool = False) -> None: def _install_chromium(browsers_path: Path, with_deps: bool = False) -> None:
@ -61,7 +61,7 @@ def _install_chromium(browsers_path: Path, with_deps: bool = False) -> None:
cmd.append("--with-deps") cmd.append("--with-deps")
cmd.append("chromium") cmd.append("chromium")
subprocess.run(cmd, check=True, env=env) subprocess.run(cmd, check=True, env=env) # nosec
async def _can_launch_chromium(browsers_path: Path) -> bool: async def _can_launch_chromium(browsers_path: Path) -> bool: