fix(ci): rsr-antipattern.yml duplicate heredoc (mirrors rsr-template-repo#39)#33
Merged
Merged
Conversation
…repo#39) Mirrors hyperpolymath/rsr-template-repo#39. Same duplicate-heredoc bug — the orphan `BUILTIN_GLOBS = [` etc. on lines 274-428 escapes the heredoc and bash exits 127 after the (passing) first script. This is the immediate cause of the `antipattern-check` failure on stapeln main and on every open PR (including #32). ## Test plan - [ ] `RSR Anti-Pattern Check` workflow goes green on this branch and on main after merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
hyperpolymath
added a commit
that referenced
this pull request
May 14, 2026
The previous PR (#33) shipped a corrupted `rsr-antipattern.yml` because the canonical fixed file was built via `gh api --jq '.content' | ...` which line-wraps base64 in the terminal pipe. Each wrapped chunk was decoded separately, producing mid-word line breaks (`# SPDX-License-Id\nentifier:`, `name: RSR A\nnti-Pattern`, etc.). GitHub Actions can't parse the resulting YAML — the workflow completes in 0 seconds with no jobs spawned. This PR replaces the file with the correct content, built via raw byte download (`Accept: application/vnd.github.raw`) and in-process string ops, written via `[System.IO.File]::WriteAllBytes`. ## Verification - 8553 bytes, 1 PYEOF, 0 orphan BUILTIN_GLOBS, 2 DIR_NAMES_ALLOWED (first script preserved) - No mid-word line breaks - Round-trip byte-identical against canonical
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.



Mirrors hyperpolymath/rsr-template-repo#39. Same duplicate-heredoc bug — the orphan
BUILTIN_GLOBS = [etc. on lines 274-428 escapes the heredoc and bash exits 127 after the (passing) first script.This is the immediate cause of the
antipattern-checkfailure on stapeln main and on every open PR (including #32).Test plan
RSR Anti-Pattern Checkworkflow goes green on this branch and on main after merge.🤖 Generated with Claude Code