Steps to reproduce:
- Create a Dockerfile
from alpine
env TEST \
foo \
bar
- Build and scan the image:
docker build -t diss-9494 .
trivy i --scanners="" --image-config-scanners=misconfig diss-9494
- Output:
2025-09-19T11:24:41+06:00 INFO [image] Container image config scanners scanners=[misconfig]
2025-09-19T11:24:41+06:00 INFO [misconfig] Misconfiguration scanning is enabled
2025-09-19T11:24:42+06:00 ERROR [dockerfile scanner] Failed to parse file file_path="Dockerfile" err="dockerfile parse error: Syntax error - can't find = in \"bar\". Must be of the form: name=value"
2025-09-19T11:24:42+06:00 INFO Detected config files num=0
2025-09-19T11:24:42+06:00 WARN [report] No enabled scanners found. Summary table will not be displayed.
Discussed in #9494
Steps to reproduce:
Discussed in #9494