docker-bench-security icon indicating copy to clipboard operation
docker-bench-security copied to clipboard

[Bug] Bad Shebang

Open OdinVex opened this issue 1 year ago • 1 comments

The current docker-bench-security.sh uses #!/bin/bash for it's shebang but bash is not included in the Docker when built as exampled. With the current init it'll run but attaching to a container and attempting to manually invoke it (since it won't pick up environmental variables for setting excludes) breaks sh since it won't execute because of an incorrect shebang.

OdinVex avatar Jan 14 '25 23:01 OdinVex

https://github.com/docker/docker-bench-security/pull/564 created

konstruktoid avatar Jan 15 '25 10:01 konstruktoid