Skip to content

fix(DM01-6465): fall back to HTTPS token after SSH clone failure - #659

Merged
liuwei08 merged 1 commit into
masterfrom
fix/DM01-6465
Nov 23, 2026
Merged

liuwei08 merged 1 commit into
masterfrom
fix/DM01-6465

Conversation

@liuwei08

Copy link
Copy Markdown
Contributor

SSH clone failures currently stop source checkout even when a GitHub token is configured. Keep SSH as the first attempt, then retry over HTTPS with the token when the URL belongs to the configured GitHub host. Subsequent fetches use the HTTPS URL. Cleanup is limited to destinations that were absent or empty before cloning.

Validation: 10 local checks passed, including real Git clone/fetch/checkout with a forced SSH failure and the HTTPS URL mapped to a local fixture. Verified token masking, host restrictions, existing-file preservation, and failure propagation. git diff --check passed. Production deployment has not been tested.

Jira: DM01-6465

@liuwei08
liuwei08 merged commit 1167c4f into master Nov 23, 2026
2 checks passed
@liuwei08
liuwei08 deleted the fix/DM01-6465 branch November 23, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants