fix(check-image-updates): check out scripts at the pinned ref - #65
Conversation
|
Warning Review limit reachedNext included review available in 50 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe workflow now checks out shared scripts from ChangesWorkflow revision alignment
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to The workflow checkout now follows the reusable workflow revision, allowing tagged callers to use matching scripts without an identified merge-blocking issue. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai full review |
|
github.job_workflow_sha does not exist and evaluated empty, so the scripts always came from main. job.workflow_sha and job.workflow_repository describe the reusable workflow file itself. Refs #58 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
b228781 to
c5c914d
Compare
Local review (CodeRabbit rate-limited)Scope: The P2 -- Moderate
P3 -- Low
Coverage
Verdict: Ready to merge once CI passes. |
check-image-updates.ymlchecked out itsscripts/withref: ${{ github.job_workflow_sha }}. That property does not exist, so the ref was empty andactions/checkoutusedmain. Once callers pin@v1, the workflow would run from the tag with scripts frommain.The fix uses
job.workflow_shaandjob.workflow_repository, which GitHub documents for exactly this case: a reusable workflow checking out its own files. actionlint 1.7.12, the latest release, does not know these properties yet, so.github/actionlint.yamlignores that one message in that one file.Verification: halos-core-containers run 35226523573 called this workflow from a throwaway branch pinned to
@fix/check-image-updates-workflow-shawithdry-run: true. The script checkout fetched and checked outd34564034d219ccf33164554ce56ed202aec0a8b, the branch head, whilemainwas at020cda3. The throwaway branch is deleted.Fly-by: adds
.coderabbit.yamlwith review instructions drawn from AGENTS.md (frozen legacy files, ref pinning, interface stability, privacy). It validates against CodeRabbit's schema v2.Closes #58
🤖 Generated with Claude Code
Summary by CodeRabbit