Skip to content

bug(misconf): incorrect handling of Docker RUN instructions with ';' #9340

Description

@nikpivkin

Example dockerfile:

FROM debian:trixie

RUN <<EOF
apt-get update
apt-get install --no-install-recommends -y gettext
EOF

The RUN instruction is transformed into apt-get update ; apt-get install --no-install-recommends -y gettext, but commands separated by ; are currently handled incorrectly.

Affected checks:

  • DS-0017

Discussed in #9334

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.scan/misconfigurationIssues relating to misconfiguration scanning

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions