Repository navigation
Feed grep -q from here-strings in workflow scripts - #1073
Merged
Merged
Conversation
A newer shellcheck (SC2337) flags grep -q at the end of a pipeline under pipefail: grep exits on its first match, and the writer can then die of SIGPIPE, failing the step on a match. The GitHub Actions audit job fails on main with it. Here-strings give grep its input without a pipe, and work under the Bash 3.2 those installer steps run on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟢 Approved
The review identifies no active issues in the workflow updates addressing SIGPIPE-prone checks while preserving Bash 3.2 compatibility.
No open issues 🎉
What changed in this PR
Updates GitHub Actions workflow checks to avoid pipefail/grep -q SIGPIPE failures while preserving Bash 3.2 compatibility.
Changes:
- Replaced affected pipelines with Bash here-strings.
- Updated installer and hardened-runtime validation checks.
| File | Description |
|---|---|
| .github/workflows/test.yml | Updates four installer-output assertions to use Bash here-strings instead of grep -q pipelines. |
| .github/workflows/release.yml | Updates the hardened-runtime check to use a Bash here-string instead of a grep -q pipeline. |
Review effort: Lite (adaptive)
dhh
enabled auto-merge (squash)
December 5, 2026 07:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The GitHub Actions audit job fails on
main, and so on every PR (e.g. #1072), because the runner's newer shellcheck added SC2337. Underpipefail,grep -qat the end of a pipeline exits on its first match, and the command writing into it can then die of SIGPIPE, which fails the step on a match.The five flagged spots (one in
release.yml, four intest.yml) now feed grep with<<<instead of a pipe. Here-strings work under the Bash 3.2 that the installer steps run on.bin/cipasses locally. The shellcheck pinned locally (0.11.0) may not have SC2337 yet, so this PR's audit job is what confirms it.🤖 Generated with Claude Code