Skip to content

ci: do not pipe git ls-remote into grep -q in the pinned-ref check - #68

Merged
tannevaled merged 1 commit into
mainfrom
ci-sha-pin-sigpipe
Nov 25, 2026
Merged

tannevaled merged 1 commit into
mainfrom
ci-sha-pin-sigpipe

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The "Every pinned action ref exists" step reported MISSING renovatebot/github-action@266fef21... -- no such tag, branch or sha for a SHA that is tag v46.3.13 (git ls-remote lists it). Cause: git ls-remote URL | grep -q under set -o pipefail; grep -q exits on the first match, git gets SIGPIPE, the pipeline fails. It started once the action's tag listing outgrew the pipe buffer. The fix reads the listing into a variable and greps the variable, so no pipe is involved.

Found while landing the decode v0.17.1 docs (PR 67 of this repository), whose CI failed on this step three times on an unchanged workflow.

🤖 Generated with Claude Code

`git ls-remote URL | grep -q "^$sha"` under `set -o pipefail`: grep -q
exits on its first match, git dies of SIGPIPE and the pipeline reports
failure once the listing outgrows the pipe buffer. The check then says
`MISSING renovatebot/github-action@266fef21... -- no such tag` for a SHA
that is tag v46.3.13 (seen on every run of PR 67 on 2026-11-25, after the
action gained two more tags). Read the listing into a variable and grep
the variable.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 02d45ef into main Nov 25, 2026
1 check passed
@tannevaled
tannevaled deleted the ci-sha-pin-sigpipe branch November 25, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant