Skip to content

Commit

Permalink
gsub remove the access token from the github config url so it isn't d…
Browse files Browse the repository at this point in the history
…isplayed in logging
  • Loading branch information
joshk committed Sep 24, 2012
1 parent 62323aa commit 82903d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/travis/notification/instrument/github.rb
Expand Up @@ -13,8 +13,9 @@ def find_completed

class Config < Github
def fetch_completed
config_url = target.url.gsub(/\?access_token=\w*/, '?access_token=[secure]')
publish(
:msg => "#{target.class.name}#fetch #{target.url}",
:msg => "#{target.class.name}#fetch #{config_url}",
:url => target.url,
:result => result
)
Expand Down

0 comments on commit 82903d4

Please sign in to comment.