Skip to content

fix(DM01-6630): prefer HTTPS checkout and enforce GitHub token access - #661

Merged
liuwei08 merged 3 commits into
masterfrom
fix/DM01-6630
Dec 3, 2026
Merged

liuwei08 merged 3 commits into
masterfrom
fix/DM01-6630

Conversation

@liuwei08

@liuwei08 liuwei08 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

GitHub checkout now prefers HTTPS token authentication while retaining direct SSH and SSH fallback. The token-access setting is enforced: disabled access keeps the owner's OAuth token out of Docker build arguments and container environments, and PR builds cannot enable the legacy export.

Checkout uses an ephemeral credential helper scoped to the project repository and administrator-approved HTTPS repositories. Tokens are no longer embedded in clone URLs, persisted in Git configuration, or propagated into child-job metadata. SSH submodules retain their transport and do not inherit the OAuth token.

Deployment: update the API before the runner. Configure github.token_repositories for additional private submodules/nested git jobs; it defaults to an empty list. Existing affected OAuth tokens should be revoked and replaced after rollout because historical metadata may retain them.

Validation: 27 job tests and 42 pyinfrabox tests passed; Helm function template rendered; a local HTTPS Git server verified authenticated clone, fetch, checkout and private-submodule checkout without token persistence. Live GitHub authentication and production rollout have not been tested.

Ticket: DM01-6630

@liuwei08 liuwei08 changed the title fix(DM01-6630): prefer GitHub token before SSH clone fix(DM01-6630): prefer HTTPS checkout and enforce GitHub token access Dec 1, 2026
@liuwei08
liuwei08 merged commit 4aeac03 into master Dec 3, 2026
2 checks passed
@liuwei08
liuwei08 deleted the fix/DM01-6630 branch December 3, 2026 06:25
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