Pin actions to hash (cron-ci.yaml)#7686
Conversation
📝 WalkthroughWalkthroughThe CI workflow file has been updated to trigger only on Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
| paths: | ||
| - .github/workflows/cron-ci.yaml | ||
| branches: | ||
| - main |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/cron-ci.yaml (1)
33-33: Optional:dtolnay/rust-toolchain@stableis still an unpinned branch ref.The PR title says "Pin actions to hash", but
dtolnay/rust-toolchain@stable(also at lines 73, 111, 174) remains a moving branch reference. If a future scope is to fully pin everything in this file for supply-chain hygiene, these are the remaining holdouts. Note thatdtolnay/rust-toolchaindoes not publish version tags, so pinning would have to be done via commit SHA with manual updates — feel free to defer if that's not the intent here.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/cron-ci.yaml at line 33, The workflow uses an unpinned branch ref dtolnay/rust-toolchain@stable; replace each occurrence of dtolnay/rust-toolchain@stable with a fixed commit SHA (dtolnay/rust-toolchain@<commit-sha>) to pin the action for supply-chain hygiene, updating all instances of that exact reference so they point to the same chosen immutable SHA rather than the moving "stable" ref.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/cron-ci.yaml:
- Line 33: The workflow uses an unpinned branch ref
dtolnay/rust-toolchain@stable; replace each occurrence of
dtolnay/rust-toolchain@stable with a fixed commit SHA
(dtolnay/rust-toolchain@<commit-sha>) to pin the action for supply-chain
hygiene, updating all instances of that exact reference so they point to the
same chosen immutable SHA rather than the moving "stable" ref.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
Run ID: 3b9a2a01-22b0-4d97-9e0c-564bb4782984
📒 Files selected for processing (1)
.github/workflows/cron-ci.yaml
closes #7567
Summary by CodeRabbit