diff --git a/pom.xml b/pom.xml
index 3183e88..248ecea 100644
--- a/pom.xml
+++ b/pom.xml
@@ -113,7 +113,7 @@
org.eclipse.mylyn.github
org.eclipse.egit.github.core
- 5.2.0.201812061821-r
+ 5.7.0.202001151323-m1
diff --git a/src/main/java/org/jenkinsci/plugins/pipeline/github/GitHubHelper.java b/src/main/java/org/jenkinsci/plugins/pipeline/github/GitHubHelper.java
index fe4630b..0af1758 100644
--- a/src/main/java/org/jenkinsci/plugins/pipeline/github/GitHubHelper.java
+++ b/src/main/java/org/jenkinsci/plugins/pipeline/github/GitHubHelper.java
@@ -18,6 +18,9 @@
import javax.annotation.Nonnull;
import java.io.IOException;
+import java.net.InetSocketAddress;
+import java.net.Proxy;
+import java.net.SocketAddress;
import java.net.URI;
import java.util.Collections;
import java.util.List;
@@ -61,6 +64,13 @@ public static ExtendedGitHubClient getGitHubClient(@Nonnull final Job,?> job)
URI uri = URI.create(gitHubSource.getApiUri());
ExtendedGitHubClient client = new ExtendedGitHubClient(uri.getHost(), uri.getPort(), uri.getScheme());
+ String proxyHost = System.getenv("PROXY_HOST");
+ String proxyPort = System.getenv("PROXY_PORT");
+ if (proxyHost != null && proxyPort != null) {
+ SocketAddress addr = new InetSocketAddress(proxyHost, Integer.parseInt(proxyPort));
+ client.setProxy(new Proxy(Proxy.Type.HTTP, addr));
+ }
+
// configure credentials
if (gitHubSource.getCredentialsId() != null) {
StandardCredentials credentials = Connector.lookupScanCredentials(