Skip to content

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

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

fix(ci): prevent pipefail SIGPIPE in workflow validation#177
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
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one) (1)
  • coderabbit

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b329b4f8-81d5-4227-b274-38651caac57a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@jaysin586
jaysin586 merged commit 04b4bc4 into main Aug 10, 2026
5 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