From 176ec0c6aad1b481db6d0c3ba43f07407309a728 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 4 Sep 2024 06:14:32 +0100 Subject: [PATCH] utils/github: use x-access-token --- Library/Homebrew/utils/github.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index c934012d28..903116d46d 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -680,7 +680,7 @@ module GitHub private_class_method def self.add_auth_token_to_url!(url) 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 url end