From 5368a593a17ac8d06b841df2d3cfcf5e828c3d9a Mon Sep 17 00:00:00 2001 From: Cobb Date: Sat, 20 Jun 2026 13:13:02 -0700 Subject: [PATCH] ci: run straw build steps with bash (dash has no 'set -o pipefail') The runner's default shell for run: steps is dash, which errors 'Illegal option -o pipefail' the moment a step runs 'set -euo pipefail' (the clone step, plus the pre-existing Verify + publish steps). Set defaults.run.shell: bash for the job; the straw-build image ships bash. --- .forgejo/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 40dc8b668..ea4dfbd96 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -30,6 +30,12 @@ on: jobs: build-and-publish: runs-on: lucy-rust + # Run every step with bash, not the runner's default dash — the steps use + # `set -euo pipefail` (pipefail is a bashism; dash errors "Illegal option"). + # The straw-build image ships /usr/bin/bash. + defaults: + run: + shell: bash container: image: git.sulkta.com/sulkta-infra/straw-build:latest steps: