utils/github/api: curl format token, not a ruby one.
This commit is contained in:
parent
08644386e1
commit
4e03afeeb6
@ -185,7 +185,10 @@ module GitHub
|
|||||||
# This is a no-op if the user is opting out of using the GitHub API.
|
# This is a no-op if the user is opting out of using the GitHub API.
|
||||||
return block_given? ? yield({}) : {} if Homebrew::EnvConfig.no_github_api?
|
return block_given? ? yield({}) : {} if Homebrew::EnvConfig.no_github_api?
|
||||||
|
|
||||||
args = ["--header", "Accept: application/vnd.github+json", "--write-out", "\n%\{http_code}"]
|
# This is a Curl format token, not a Ruby one.
|
||||||
|
# rubocop:disable Style/FormatStringToken
|
||||||
|
args = ["--header", "Accept: application/vnd.github+json", "--write-out", "\n%{http_code}"]
|
||||||
|
# rubocop:enable Style/FormatStringToken
|
||||||
|
|
||||||
token = credentials
|
token = credentials
|
||||||
args += ["--header", "Authorization: token #{token}"] unless credentials_type == :none
|
args += ["--header", "Authorization: token #{token}"] unless credentials_type == :none
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user