Set release persist-credential false#1010
Conversation
Set GitHub CLI as a Git credential helper to operate.
There was a problem hiding this comment.
Pull request overview
This PR updates the release workflow to stop persisting actions/checkout credentials and instead rely on GitHub CLI as the git credential helper, aligning the workflow with security linting expectations.
Changes:
- Set
actions/checkoutpersist-credentialstofalsein the release workflow. - Add a
gh auth setup-gitstep and provideGH_TOKENtotagprto support authenticated git operations. - Remove the ghalint exclusion that previously allowed
persist-credentials: truefor the release job.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/release.yml |
Disables persisted checkout credentials and configures git authentication for the release process. |
.github/ghalint.yml |
Removes the workflow lint exclusion related to persist-credentials. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
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 (2)
💤 Files with no reviewable changes (1)
WalkthroughThis PR disables credential persistence in GitHub Actions' checkout step for the release workflow and removes the associated linter policy exception. The checkout step now prevents authentication tokens from persisting to later steps, while the release automation continues to use an explicit token passed via environment variable. ChangesCredential Security Policy
🚥 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 |
Set the GitHub CLI as a Git credential helper to operate.