From e573342a5bf1eee232776f81812f35661921caf5 Mon Sep 17 00:00:00 2001 From: kzhuklinets <53328474+kzhuklinets@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:01:21 +0100 Subject: [PATCH] Update update_script.rb --- updater/bin/update_script.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/bin/update_script.rb b/updater/bin/update_script.rb index dfd3d3a2..6f39f9ba 100644 --- a/updater/bin/update_script.rb +++ b/updater/bin/update_script.rb @@ -542,7 +542,7 @@ def show_diff(original_file, updated_file) clone_options << " --branch #{$options[:branch]} --single-branch" if $options[:branch] puts "Cloning repository into #{repo_contents_path}" puts "git clone #{clone_options.string} #{url} #{repo_contents_path}" - Dependabot::SharedHelpers.run_shell_command("git clone #{clone_options.string} #{url} #{repo_contents_path}") + Dependabot::SharedHelpers.run_shell_command("git clone -c http.extraheader=\"AUTHORIZATION: bearer #{auth_token}\" --branch #{$options[:branch]} #{url} #{repo_contents_path}") # repo_api_query = "/&versionDescriptor[versionType]=branch&versionDescriptor[version]=#{$options[:branch]}" \ # "&$format=zip&download=true" # repo_api_path = "#{$options[:azure_organization]}/#{$options[:azure_project]}/_apis/git/repositories/" \