You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shell: bash is emitted unconditionally onto a consumer-configurable container image #2321
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.
Activity
test(terraform): tie the ops page's YAML sample to the generator (#2331…