ci: preserve Go build cache between Docker workflow runs - #406
ci: preserve Go build cache between Docker workflow runs#406AlexHardAtWork wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThe Dockerfile removes the explicit ChangesBuildKit Go Module Cache Persistence
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/docker.yaml:
- Around line 101-110: The cache step in the Docker workflow can write cache
artifacts from untrusted PR runs, which could poison the cache consumed by
trusted builds. Modify the cache action configuration to restrict cache writes
to trusted events only by adding a mode parameter set to restore-only for PR
events and allowing full read-write mode only for trusted refs like push events
to main or release branches. Use conditional logic with github.event_name and
github.ref to control the cache mode accordingly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 5f5a603d-bb23-429e-80f6-396e61bde421
📒 Files selected for processing (2)
.github/workflows/docker.yamlDockerfile
2a82d72 to
9c2ce2a
Compare
What
Part of #237.
Testing
Tested by multiple runs.
Checklist
Summary by CodeRabbit