Repository navigation
fix(DM01-6630): prefer HTTPS checkout and enforce GitHub token access - #661
Merged
Merged
Conversation
Jiachen0715
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_repositoriesfor 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