ci: improve pin actions#4278
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughGitHub Actions workflows are updated to pin actions to commit SHAs, add top-level workflow permissions, adjust publish commands/flags, set persist-credentials:false for publishing, and switch the autofix formatting step to run pnpm fmt. ChangesCI/CD Workflow Configuration Updates
🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 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)
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: 2
🤖 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/autofix.yml:
- Line 17: The workflow is using
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd (v6) which defaults to
persisting Git credentials; update the checkout step that references
actions/checkout (the line with uses:
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd) to explicitly set
persist-credentials: false so the runner does not store the auth token in git
config.
In @.github/workflows/ci.yml:
- Line 18: Update every actions/checkout@... step to disable credential
persistence by adding persist-credentials: false; specifically modify all
checkout invocations referenced (the one at
actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd and the additional
checkouts at the other workflow locations including those that set fetch-depth:
0) to include persist-credentials: false so token-backed git credentials are not
written to the repo config across steps.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: ed09f209-ba4f-4c21-9453-99059d3fa673
📒 Files selected for processing (3)
.github/workflows/autofix.yml.github/workflows/ci.yml.github/workflows/copilot-setup-steps.yml
commit: |
No description provided.