-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat: Enable passing of proxy variables to Docker build #2723
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
base: master
Are you sure you want to change the base?
feat: Enable passing of proxy variables to Docker build #2723
Conversation
Tidy log statement
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (31.25%) is below the target coverage (50.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #2723 +/- ##
===========================================
+ Coverage 61.56% 74.46% +12.90%
===========================================
Files 53 73 +20
Lines 9002 11169 +2167
===========================================
+ Hits 5542 8317 +2775
+ Misses 3020 2213 -807
- Partials 440 639 +199 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@Mergifyio requeue (Was trying to get the needs-work label to be recalculated). |
❌ Command disallowed due to command restrictions in the Mergify configuration.
|
|
I think it would be better to make it an option that allows passing any custom envvars rather than just proxy |
I don't want to pass key=value pairs in case there are sensitive values in there which would get logged when the docker command gets printed, so I'd like to just pass envar keys. Would you be ok to have this as a flag that has a default value of If we went down this route, what would the flag be called? |
|
@panekj Please take a look at the revised PR, you can now do as you wish.
|
|
Hi, |
Resolves #2722.
This PR adds a flag called
--pass-proxy-vars-to-docker-build--pass-envvars-to-docker-buildwhich allows the user to pass proxy variables through to the build of Docker-based actions. These variables are HTTP_PROXY, HTTPS_PROXY and NO_PROXY, plus the lowercase versions too because not all applications respect all cases.The variables that are set are taken from the environment of Act itself. If the URL includes a password then this is redacted when logging the command passed to Docker.
This PR allows Act to be used within an enterprise environment where access to the internet is via an authenticating proxy, otherwise Docker-based actions are not able to be used if they need to access the internet as part of their build process.