Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v0.8 backport] git: set token only for main remote access #1991

Merged
merged 1 commit into from
Feb 22, 2021

Conversation

thaJeztah
Copy link
Member

backport of #1987

fix docker/build-push-action#300

When setting the token for the request scope it to the main URL only so that it is not used for fetching irrelevant submodules. If submodules don't understand the token they can fail the fetch.

This is documented in https://git-scm.com/docs/git-config#Documentation/git-config.txt-httplturlgt

Signed-off-by: Tonis Tiigi <[email protected]>
(cherry picked from commit 5bf6429)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the v0.8.2 milestone Feb 22, 2021
@thaJeztah
Copy link
Member Author

@tonistiigi @crazy-max ptal

@tonistiigi tonistiigi merged commit edd0a75 into moby:v0.8 Feb 22, 2021
@thaJeztah thaJeztah deleted the 0.8_backport_git_token_scope branch February 22, 2021 17:26
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.

3 participants