Skip to content

shell: bash is emitted unconditionally onto a consumer-configurable container image #2321

Closed

Description

@lex00

What

Found by a pre-release adversarial review of #2307 (which closed #2299).

lexicons/github/src/components/generate-op-pipeline.ts:656 takes options.image from the consumer and :716 puts it in the job's container:. gatedRunStep (:291) now returns shell: "bash" with no check that the image actually has bash.

Why it matters

#2299 was fixed by declaring shell: bash, which is correct for the default node:22-slim. A consumer setting image: "alpine:3.20" or a distroless image now fails every gated push job with bash: not found. Before #2307 those images worked, because busybox ash accepts set -o pipefail — so this is a narrow behaviour regression for non-bash images rather than a pre-existing gap.

No in-repo consumer sets a non-bash image, which is why it did not surface.

Do

Either emit a POSIX-clean script that needs no bash (set -o pipefail is the only bash-ism in it), or detect and refuse an image the generator cannot guarantee a bash for, or document the requirement on options.image and check it in a lint rule. The first is the only one that removes the constraint rather than moving it.

Proof

A generated pipeline for a consumer-set non-bash image, asserting the gated job can start. Red today.

Refs #2299, #2307, #2289.

Activity

  1. added
    bug
    on Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions