Skip to content

fix(ci): prevent pipefail SIGPIPE in workflow validation - #18

Merged
jaysin586 merged 1 commit into
mainfrom
fix/ci-pipefail-sigpipe
Aug 10, 2026
Merged

fix(ci): prevent pipefail SIGPIPE in workflow validation#18
jaysin586 merged 1 commit into
mainfrom
fix/ci-pipefail-sigpipe

Conversation

@jaysin586

Copy link
Copy Markdown
Contributor

Prevents workflow validation from failing with exit code 141 when a repository has more than five branches. The diagnostic branch listing now uses sed, which consumes the complete input stream and remains compatible with set -o pipefail.

Replaces git branch -a | head -5 with git branch -a | sed -n '1,5p' in .github/workflows/validate-workflows.yml. Unlike head, sed reads the entire input stream, so the upstream git branch never receives SIGPIPE and genuine validation failures are still detected under set -euo pipefail.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jaysin586 jaysin586 added the skip-publish This is something important, but we dont want to publish it label Aug 10, 2026
@jaysin586
jaysin586 merged commit 16556e6 into main Aug 10, 2026
2 of 3 checks passed
@jaysin586
jaysin586 deleted the fix/ci-pipefail-sigpipe branch August 10, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-publish This is something important, but we dont want to publish it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant