github: redact token in the log
This commit is contained in:
parent
739c06229d
commit
4f29af08f8
@ -195,7 +195,7 @@ module GitHub
|
|||||||
|
|
||||||
args += ["--dump-header", headers_tmpfile.path]
|
args += ["--dump-header", headers_tmpfile.path]
|
||||||
|
|
||||||
output, errors, status = curl_output("--location", url.to_s, *args)
|
output, errors, status = curl_output("--location", url.to_s, *args, secrets: [token])
|
||||||
output, _, http_code = output.rpartition("\n")
|
output, _, http_code = output.rpartition("\n")
|
||||||
output, _, http_code = output.rpartition("\n") if http_code == "000"
|
output, _, http_code = output.rpartition("\n") if http_code == "000"
|
||||||
headers = headers_tmpfile.read
|
headers = headers_tmpfile.read
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user