Commit e450c798 authored by Ethan Urie's avatar Ethan Urie

Adding API key to spamcheck call

parent 0164809a
......@@ -40,7 +40,8 @@ module Gitlab
def issue_spam?(spam_issue:, user:, context: {})
issue = build_issue_protobuf(issue: spam_issue, user: user, context: context)
response = @stub.check_for_spam_issue(issue)
response = @stub.check_for_spam_issue(issue, metadata:
{'authorization' => ENV['SPAMCHECK_APIKEY']})
verdict = convert_verdict_to_gitlab_constant(response.verdict)
[verdict, response.error]
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment