T08 · Insecure Dependencies
- Location
scripts/merge_travel_pdfs.py:25- Finding
Automatic Installation of Unpinned Third-Party Dependencies
- Content
View full analysis
None: if not AUTO_INSTALL_DEPS: raise RuntimeError("LibreOffice/soffice not found and auto-install is disabled") system = platform.system() commands: list[list[str]] = [] if system == "Darwin": brew = shutil.which("brew") if brew: commands.append([brew, "install", "--cask", "libreoffice"]) elif system == "Windows": winget = shutil.which("winget") choco = shutil.which("choco") if winget: commands.append([winget, "install", "--id", "TheDocumentFoundation.LibreOffice", "-e", "--accept-package-agreements", "--accept-source-agreements"]) if choco: commands.append([choco, "install", "libreoffice-fresh", "-y"]) else: apt = shutil.which("apt-get") dnf = shutil.which("dnf") yum = shutil.which("yum") if apt: commands.append([apt, "update"]) commands.append([apt, "install", "-y", "libreoffice"]) if dnf: commands.append([dnf, "install", "-y", "libreoffice"]) if yum: commands ...[truncated 3241 chars]- Remediation
View remediation
