From 171ea995859d18a57cfb50158d38ddf915bc226e Mon Sep 17 00:00:00 2001 From: ShahzaibAwan Date: Fri, 13 Jan 2023 07:10:58 +0500 Subject: [PATCH] Add env for sensitive config info --- lib/travis/hub/config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/travis/hub/config.rb b/lib/travis/hub/config.rb index 0821d1e2a..a17386ecc 100644 --- a/lib/travis/hub/config.rb +++ b/lib/travis/hub/config.rb @@ -30,7 +30,7 @@ def jwt_key(type) states_cache: { memcached_servers: 'localhost:11211', memcached_options: {} }, name: 'hub', host: 'travis-ci.org', - encryption: env == 'development' || env == 'test' ? { key: 'secret' * 10 } : {}, + encryption: { key: ENV['TRAVIS_ENCRYPTION_KEY'] || 'secret' * 10 }, logger: { thread_id: true }, librato: {}, sentry: {},