ci: disable checkout credential persistence in the windows-build job#6661
Merged
Conversation
actions/checkout leaves the workflow token in .git/config by default; the windows-build job compiles PR-controlled build scripts and proc macros, so it should not have the token on disk. Flagged by zizmor (artipacked) via the CodeRabbit review on #6610. The 16 pre-existing checkout steps in this workflow share the same default; sweeping them is left as a maintainer decision since some jobs may rely on the persisted token.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Windows build workflow updates its checkout step to disable persisted credentials in the repository configuration. ChangesWindows checkout credential handling
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the CodeRabbit/zizmor finding on the merged #6610: the new windows-build job's checkout persisted the workflow token in .git/config while compiling PR-controlled build scripts and proc macros. One-line fix: persist-credentials: false.
Note for the maintainer: 16 of the 17 checkout steps in test.yml share the same default (only one job sets persist-credentials today). Sweeping the rest is deliberately NOT in this PR - some jobs may rely on the persisted token (e.g. anything that pushes or uses gh with the ambient credential) and each needs individual verification.
No version bump / changelog per maintainer instruction.
Summary by CodeRabbit