8000 False positives regarding old limitations of Busybox sh (Alpine) · Issue #1084 · hadolint/hadolint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
False positives regarding old limitations of Busybox sh (Alpine) #1084
Open
@reitzig

Description

@reitzig

From what I can tell, Busybox defaults to ash these days, which doesn't have the same limitations as its sh used to have. That seems to have made some rules obsolete, that is they are false positives now.

Examples I encountered follow; there may be more.

DL4006

FROM alpine:3.21
SHELL ["/bin/sh", "-e", "-u", "-o", "pipefail", "-c"]
RUN echo $foo | echo "should not get here"

fails to build as expected, but DL4006 triggers on line 3.

SC3037

FROM alpine:3.21
RUN echo -e "abc\ndef"

prints two lines as expected, but SC3037 triggers on line 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0