fix(claude-command-router): use absolute ref for check-auth (#262)#263
fix(claude-command-router): use absolute ref for check-auth (#262)#263cbeaulieu-gt merged 1 commit intomainfrom
Conversation
\`uses: ./check-auth\` resolved into the consumer's workspace when invoked from an external repo, breaking the action. Absolute ref \`glitchwerks/github-actions/check-auth@v2\` resolves from this library's tree regardless of consumer.
|
Claude finished @cbeaulieu-gt's task in 2m 53s —— View job PR Review CompleteI've completed a comprehensive review of PR #263 across code quality, security, performance, test coverage, and documentation dimensions. SummaryThis PR fixes a real bug where AnalysisWhat I verified:
Code quality: The change is minimal (+1/-1), focused, and follows established conventions. The Security: No security implications. This is a path reference update with no changes to logic or data handling. Performance: No performance impact. Action resolution happens once at job setup. Test coverage: The existing test suite in Documentation: Already documented in CLAUDE.md. No additional documentation needed. FindingsNo issues found. This is a correct, minimal fix that addresses a real bug and brings the code in line with established patterns. Verdict: APPROVE |
External-consumer validation: passingValidated this branch end-to-end from A throwaway workflow on a Result: run 25618698226 succeeded. The fixed Under the unfixed Safe to merge and re-tag 🤖 Generated by Claude Code on behalf of @cbeaulieu-gt |
Problem
claude-command-router/action.ymlreferencedcheck-authvia a relative path:When an external consumer invokes
glitchwerks/github-actions/claude-command-router@v2as a reusable workflow step,actions/checkout@v4puts the consumer's repo into the runner workspace../check-auththen resolves into the consumer's tree — which has no such directory — and the action fails.Real-world failure: https://github.com/glitchwerks/claude-configs/actions/runs/25617446089
This footgun is documented in this repo's own
CLAUDE.mdunder "Why absolute refs, not relative paths" — composite actions calling sibling composite actions must use absolute refs.Fix
Changed the
uses:reference to the absolute form:GitHub resolves this directly from this library's tree regardless of what repo the consumer has checked out.
Audit
Grepped all
action.ymlfiles in the repo for remaininguses: ./references. No other composite action files contain relative sibling references — this was the only instance.Workflow files under
.github/workflows/were excluded from flagging; relative./refs there (e.g.apply-fix.yml→./apply-fix) are correct because reusable workflows operate within a single checkout context.CI note
Due to the dogfooding limitation noted in
CLAUDE.md, CI on this PR testscheck-authat the released@v2tag, not the branch's composite action changes. The bug only manifests when invoked from an external consumer repo. The fix is verified by inspection.Closes #262
🤖 Generated by Claude Code on behalf of @cbeaulieu-gt