utils/github: use x-access-token

This commit is contained in:
Bo Anderson 2024-09-04 06:14:32 +01:00
parent 0b3d78aa0f
commit 176ec0c6aa
No known key found for this signature in database

View File

@ -680,7 +680,7 @@ module GitHub
private_class_method def self.add_auth_token_to_url!(url) private_class_method def self.add_auth_token_to_url!(url)
if API.credentials_type == :env_token if API.credentials_type == :env_token
url.sub!(%r{^https://github\.com/}, "https://#{API.credentials}@github.com/") url.sub!(%r{^https://github\.com/}, "https://x-access-token:#{API.credentials}@github.com/")
end end
url url
end end