From 462acd44f89fad8cd5ce8aa9f31f835cc14841a2 Mon Sep 17 00:00:00 2001 From: lukesmith Date: Tue, 19 Jan 2016 11:27:35 +0000 Subject: [PATCH] Treat the octopus api as sensitive --- bozo-scripts.gemspec | 2 +- lib/bozo/hooks/octopus_create_release.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bozo-scripts.gemspec b/bozo-scripts.gemspec index 03f5398..5a75a20 100644 --- a/bozo-scripts.gemspec +++ b/bozo-scripts.gemspec @@ -22,6 +22,6 @@ Gem::Specification.new do |s| s.add_runtime_dependency "nokogiri", '~> 1.5.1' s.add_runtime_dependency "erubis", '~> 2.7.0' s.add_runtime_dependency 'test-unit', '~> 2.4.8' - s.add_runtime_dependency "bozo", '~> 0.4.0' + s.add_runtime_dependency "bozo", '~> 0.5.0' s.add_runtime_dependency "zip", '~> 2.0.2' end diff --git a/lib/bozo/hooks/octopus_create_release.rb b/lib/bozo/hooks/octopus_create_release.rb index 5d92cab..14ce930 100644 --- a/lib/bozo/hooks/octopus_create_release.rb +++ b/lib/bozo/hooks/octopus_create_release.rb @@ -49,7 +49,7 @@ def post_publish args << "--version #{env['BUILD_VERSION_FULL']}" args << "--packageversion #{env['BUILD_VERSION_FULL']}" args << "--server #{@octopus_server}" - args << "--apiKey #{@octopus_api_key}" + args << ['--apiKey', Bozo::SensitiveValue.new(@octopus_api_key)] args << "--releaseNotes \"[Build #{env['BUILD_VERSION_FULL']}](#{env['BUILD_URL']})\"" if @display_progress