Skip to content

Conversation

@miguelramos
Copy link
Member

BREAKING CHANGE: Remote operations (push, pull, fetch) now support both SSH and HTTPS authentication methods.

  • Add HTTPS credential support with multiple sources:
    • URL-embedded credentials (https://user:token@host/repo.git)
    • Environment variables: GH_TOKEN, GITHUB_TOKEN, GIT_TOKEN
    • Explicit GIT_USERNAME/GIT_PASSWORD variables
  • Refactor create_ssh_credentials into create_credentials with automatic detection of authentication method based on CredentialType
  • Add create_https_credentials and create_ssh_key_credentials helper methods
  • Update push, fetch, and push_with_ssh_config to use new authentication system
  • Add url crate dependency for URL parsing
  • Add comprehensive tests for credential authentication
  • Update SPEC.md with authentication documentation

This resolves GitHub Actions authentication failures when using HTTPS remotes with token-based authentication (error: Auth -16).

BREAKING CHANGE: Remote operations (push, pull, fetch) now support both SSH and HTTPS authentication methods.

- Add HTTPS credential support with multiple sources:
  - URL-embedded credentials (https://user:token@host/repo.git)
  - Environment variables: GH_TOKEN, GITHUB_TOKEN, GIT_TOKEN
  - Explicit GIT_USERNAME/GIT_PASSWORD variables
- Refactor create_ssh_credentials into create_credentials with automatic
  detection of authentication method based on CredentialType
- Add create_https_credentials and create_ssh_key_credentials helper methods
- Update push, fetch, and push_with_ssh_config to use new authentication system
- Add url crate dependency for URL parsing
- Add comprehensive tests for credential authentication
- Update SPEC.md with authentication documentation

This resolves GitHub Actions authentication failures when using HTTPS remotes
with token-based authentication (error: Auth -16).
@miguelramos miguelramos self-assigned this Jan 9, 2026
@miguelramos miguelramos added ♨️ ACTION: pull request Pull request 🔭 TYPE: Request Request feature/functionality 🦠 TYPE: Bug Something isn't working labels Jan 9, 2026
@miguelramos miguelramos merged commit 7a6ea1a into main Jan 9, 2026
10 checks passed
@miguelramos miguelramos deleted the feat/GIT-HTTPS-SUPPORT branch January 9, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

♨️ ACTION: pull request Pull request 🦠 TYPE: Bug Something isn't working 🔭 TYPE: Request Request feature/functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants