summaryrefslogtreecommitdiff
path: root/app/services/web_hooks/log_execution_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/web_hooks/log_execution_service.rb')
-rw-r--r--app/services/web_hooks/log_execution_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/web_hooks/log_execution_service.rb b/app/services/web_hooks/log_execution_service.rb
index 1a40c877bda..448bb7d4097 100644
--- a/app/services/web_hooks/log_execution_service.rb
+++ b/app/services/web_hooks/log_execution_service.rb
@@ -24,6 +24,8 @@ module WebHooks
private
def log_execution
+ log_data[:request_headers]['X-Gitlab-Token'] = _('[REDACTED]') if hook.token?
+
WebHookLog.create!(web_hook: hook, **log_data)
end