avocado-framework/avocado

View on GitHub
avocado/plugins/spawners/podman.py

Summary

Maintainability
B
6 hrs
Test Coverage
C
74%

Probable insecure usage of temp file/directory.
Open

        mounted_status_server_socket = "/tmp/.status_server.sock"
Severity: Minor
Found in avocado/plugins/spawners/podman.py by bandit

Probable insecure usage of temp file/directory.
Open

                        runtime_task.task.runnable.uri = os.path.join(
                            "/tmp", runtime_task.task.runnable.uri
Severity: Minor
Found in avocado/plugins/spawners/podman.py by bandit

Probable insecure usage of temp file/directory.
Open

                        to = os.path.join("/tmp", asset)
Severity: Minor
Found in avocado/plugins/spawners/podman.py by bandit

subprocess call - check for execution of untrusted input.
Open

        process = subprocess.Popen(
            cmd,
            stdin=subprocess.DEVNULL,
            stdout=subprocess.PIPE,
            stderr=subprocess.DEVNULL,
Severity: Info
Found in avocado/plugins/spawners/podman.py by bandit

Consider possible security implications associated with subprocess module.
Open

import subprocess
Severity: Info
Found in avocado/plugins/spawners/podman.py by bandit

subprocess call - check for execution of untrusted input.
Open

            process = subprocess.Popen(
                cmd,
                stdin=subprocess.DEVNULL,
                stdout=subprocess.PIPE,
                stderr=subprocess.DEVNULL,
Severity: Info
Found in avocado/plugins/spawners/podman.py by bandit

Probable insecure usage of temp file/directory.
Open

            to = os.path.join("/tmp/", os.path.basename(path))
Severity: Minor
Found in avocado/plugins/spawners/podman.py by bandit

Probable insecure usage of temp file/directory.
Open

        output_podman_path = "/tmp/.avocado_task_output_dir"

Severity: Minor
Found in avocado/plugins/spawners/podman.py by bandit

File podman.py has 437 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import asyncio
import json
import logging
import os
import re
Severity: Minor
Found in avocado/plugins/spawners/podman.py - About 6 hrs to fix

    There are no issues that match your filters.

    Category
    Status