Repository navigation
ci: do not pipe git ls-remote into grep -q in the pinned-ref check - #68
Merged
Merged
Conversation
`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>
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 "Every pinned action ref exists" step reported
MISSING renovatebot/github-action@266fef21... -- no such tag, branch or shafor a SHA that is tag v46.3.13 (git ls-remotelists it). Cause:git ls-remote URL | grep -qunderset -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