Improve support for installation tokens - #108
Conversation
🛠️ Kit AI Code ReviewPriority IssuesMedium Priority: The askpass script lacks proper error handling and cleanup mechanisms that could lead to resource leaks or authentication failures in edge cases. SummaryThis PR improves GitHub authentication by fixing how Git credentials are provided when using tokens (PATs or installation tokens). The change addresses a critical issue where Git's two-prompt authentication flow (username + password) was being handled incorrectly, causing 404/authentication errors. Key changes:
Recommendations
The core logic is sound and addresses a real authentication problem. The implementation correctly follows GitHub's token authentication patterns and should resolve the 404 errors mentioned in the comments. Generated by cased kit v1.3.2 • Mode: kit • Model: claude-sonnet-4-20250514 |
What This PR Does
This PR fixes GitHub authentication issues when using installation tokens or Personal Access Tokens (PATs) for Git operations. The change improves how the code handles Git's credential prompts by properly distinguishing between username and password requests.
Key Changes
Impact
src/kit/repository.pyGenerated by kit v1.3.2 • Model: claude-sonnet-4-20250514