From c7b8e79426f55cd34b6f790210650af4d1581dbc Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sun, 13 Jan 2019 06:41:35 +0100
Subject: [PATCH] =?UTF-8?q?fix(config):=20don=E2=80=99t=20set=20token=20if?=
 =?UTF-8?q?=20dummy=20token=20used?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/config/env.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/config/env.js b/lib/config/env.js
index 6f231cbf6f..18fe916216 100644
--- a/lib/config/env.js
+++ b/lib/config/env.js
@@ -39,7 +39,7 @@ function getConfig(env) {
     }
   });
 
-  if (env.GITHUB_TOKEN) {
+  if (env.GITHUB_TOKEN && env.GITHUB_TOKEN !== 'dummy') {
     config.hostRules.push({
       platform: 'github',
       endpoint: env.GITHUB_ENDPOINT,
@@ -48,7 +48,7 @@ function getConfig(env) {
     });
   }
 
-  if (env.GITHUB_COM_TOKEN) {
+  if (env.GITHUB_COM_TOKEN && env.GITHUB_TOKEN !== 'dummy') {
     config.hostRules.push({
       endpoint: 'https://api.github.com/',
       platform: 'github',
-- 
GitLab