Skip to content

Commit 646760d

Browse files
committed
Merge branch 'master' of github.com:pjhyett/github-services
2 parents 26a0e8e + 0c040e2 commit 646760d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

github-services.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,13 @@ def service(name)
5454
yield data, payload
5555
end
5656
rescue => boom
57-
hook_data = params[:data].dup
57+
# redact sensitive info in hook_data hash
58+
hook_data = data || params[:data]
5859
%w[password token].each { |key| hook_data[key] &&= '<redacted>' }
5960
report_exception boom,
6061
:hook_name => name,
61-
:hook_data => hook_data,
62-
:hook_payload => params[:payload]
62+
:hook_data => hook_data.inspect,
63+
:hook_payload => (payload || params[:payload]).inspect
6364
raise
6465
end
6566
end

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy