We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ebed2b commit 3c07f4bCopy full SHA for 3c07f4b
lib/circleci/cli/command/base_command.rb
@@ -7,7 +7,7 @@ class BaseCommand
7
class << self
8
def setup_token
9
CircleCi.configure do |config|
10
- config.token = ENV['CIRCLE_CI_TOKEN'] || ask('Circle CI token ? :')
+ config.token = ENV.fetch('CIRCLE_CI_TOKEN', nil) || ask('Circle CI token ? :')
11
end
12
13
lib/circleci/cli/networking/pusher_client.rb
@@ -36,7 +36,7 @@ def socket
36
37
38
def auth(socket_id, channel)
39
- token = ENV['CIRCLE_CI_TOKEN'] || ask('Circle CI token ? :')
+ token = ENV.fetch('CIRCLE_CI_TOKEN', nil) || ask('Circle CI token ? :')
40
res = connection.post(
41
"/auth/pusher?circle-token=#{token}",
42
{ socket_id: socket_id, channel_name: channel.name }
0 commit comments