diff --git a/src/axolotl/cli/cloud/modal_.py b/src/axolotl/cli/cloud/modal_.py index 3e703a494..df8f8f215 100644 --- a/src/axolotl/cli/cloud/modal_.py +++ b/src/axolotl/cli/cloud/modal_.py @@ -90,9 +90,8 @@ class ModalCloud(Cloud): # grab the sha256 hash from docker hub for this image+tag # this ensures that we always get the latest image for this tag, even if it's already cached try: - manifest = subprocess.check_output( # nosec B602 - f"docker manifest inspect {docker_image}", - shell=True, + manifest = subprocess.check_output( # nosec + ["docker", "manifest", "inspect", docker_image], ).decode("utf-8") sha256_hash = json.loads(manifest)["manifests"][0]["digest"] except subprocess.CalledProcessError: