-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Set git insteadOf for all auth in all sidecar containers #11470
Comments
I needed to do something similar to replace a SSH dependency and use HTTP instead with poetry, for those interested my configuration look like this. {
"platform": "gitlab",
"endpoint": "https://gitlab.xxxx.com/api/v4/",
"token": "xxxx",
"autodiscover": true,
"dryRun": false,
"logFileLevel": "debug",
"requireConfig": true,
"onboarding": false,
"binarySource": "docker",
"customEnvVariables": {
"GIT_CONFIG_COUNT": "1",
"GIT_CONFIG_KEY_0": "url.https://oauth2:xxxxx@xxxxx.com/.insteadOf",
"GIT_CONFIG_VALUE_0": "git@xxxx.com:"
},
"hostRules": [
{
"matchHost": "xxxx.com",
"username": "renovatebot",
"password": "xxxx"
},
{
"hostType": "npm",
"matchHost": "xxxx.com",
"username": "renovatebot",
"password": "xxxx"
}
]
}
|
@Chumper I think it could be better if we use environment variables instead of commands, as pioneered in the |
@rarkins Makes sense, in that case let me create a PR to add it to Python as well |
@Chumper some interesting alternative approaches proposed by @james-callahan in #20059 (comment) |
I think there's nothing stopping us either or both:
The only challenge would be what to do when there's conflicting credentials for the same host, due to different hostTypes (e.g. python vs npm). But in that case we could maybe do first or last one wins, and treat it as a documented limitation. PRs welcome.. |
yeah, sorry, late to the party. As @rarkins said, there are a few ways of doing this, we just need someone to implement it. |
What would you like Renovate to be able to do?
Configure
git
insteadOf
instructions:insteadOf ssh://git@github.com:
,insteadOf git://github.com/
, etc.Might this solve a few manager private auth problems in one go?
If you have any ideas on how this should be implemented, please tell us here.
If doing in env, presumably similar to #11077 by @Shegox
Is this a feature you are interested in implementing yourself?
No
The text was updated successfully, but these errors were encountered: