-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add upstream proxy configuration #80
Add upstream proxy configuration #80
Conversation
Thanks for the PR @NeuronAddict! Which parts of the app consume these variables? Is it |
Thanks for the feedback. I think it is the ruby http library that use the http_proxy, The stacktrace when an error occur (without proxy) look like :
So the container use ruby http. The documentation on https://ruby-doc.org/stdlib-2.7.1/libdoc/net/http/rdoc/Net/HTTP.html (proxies section) say :
I don't see any mention about this on dependabot-core, just this issue : dependabot/dependabot-core#3348. Set the http_proxy work, but indeed I don't know if it's intentional. |
Got it, thanks! I pushed a small change to make the pipeline pass since the setup requires running helm-doc to generate compatible readme and update all the chart version mentions. |
One thing to note, I'm not sure how to document this. This will only work for ruby processes and maybe some other tools that use same environment variable. The dependabot-core uses a lot of native helpers for different package managers, so even when setting this proxy, some of the dependency updates that will not read these environment variables, might still fail. |
Hum, you're right. I just test with the maven dependencies system. Its worth checking out, let me check with another helper and give a feedback as soon as possible. May be also open an issue on dependabot-core. PS: See this case on dependabot-script dependabot/dependabot-script#688, but it doesn't say if it always work. |
I will go ahead and merge it since it would still cover at least some cases if not all and it doesn't really introduce any additional changes if not used |
In organisations with an internal gitlab, github can't be fetched without use an http proxy.
This MR add some values to support upstream proxy support.
I use the same approch as for the other env params, but feel free to give any feedback.