Skip to content

fix: strip whitespace from GitHub PATs before validation#1393

Closed
jony376 wants to merge 1 commit into
entrius:testfrom
jony376:fix/normalize-github-pat-whitespace
Closed

fix: strip whitespace from GitHub PATs before validation#1393
jony376 wants to merge 1 commit into
entrius:testfrom
jony376:fix/normalize-github-pat-whitespace

Conversation

@jony376
Copy link
Copy Markdown

@jony376 jony376 commented May 28, 2026

Summary

Normalize GitHub PATs by stripping leading and trailing whitespace before validation, storage, and API calls so tokens copied from .env files or secret managers are accepted.

Related Issues

Closes #1392

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PAT validation fails when token has leading or trailing whitespace

2 participants