Skip to content

fix(ci): rsr-antipattern.yml duplicate heredoc (mirrors rsr-template-repo#39)#33

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/rsr-antipattern-duplicate-heredoc
May 14, 2026
Merged

fix(ci): rsr-antipattern.yml duplicate heredoc (mirrors rsr-template-repo#39)#33
hyperpolymath merged 1 commit into
mainfrom
fix/rsr-antipattern-duplicate-heredoc

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

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

…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)
@sonarqubecloud
Copy link
Copy Markdown

@hyperpolymath hyperpolymath merged commit 96b85c2 into main May 14, 2026
19 of 22 checks passed
@hyperpolymath hyperpolymath deleted the fix/rsr-antipattern-duplicate-heredoc branch May 14, 2026 11:55
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
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