(args: string[])
| 46 | } |
| 47 | |
| 48 | function isNonInteractiveShellExec(args: string[]): boolean { |
| 49 | return ( |
| 50 | args.includes("-c") || |
| 51 | args.some((a) => a === "-Command" || a.startsWith("-Command")) || |
| 52 | args.some((a) => a.endsWith(".sh") || a.includes("/")) |
| 53 | ); |
| 54 | } |
| 55 | |
| 56 | function isAttachLike(cmd: string, args: string[]): boolean { |
| 57 | if (cmd === "docker" || cmd === "podman") { |
no outgoing calls
no test coverage detected