From 76ccfb2828678c5419c21bf40b72cb15334ae490 Mon Sep 17 00:00:00 2001 From: Eli Holmes Date: Thu, 21 Nov 2024 18:14:01 -0800 Subject: [PATCH] respect auth_token=NULL --- R/install-github.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/install-github.R b/R/install-github.R index 3707518d..e5b03f54 100644 --- a/R/install-github.R +++ b/R/install-github.R @@ -260,7 +260,7 @@ remote_package_name.github_remote <- function(remote, ..., use_local = TRUE, remote_sha.github_remote <- function(remote, ..., use_curl = !is_standalone() && pkg_installed("curl")) { tryCatch( github_commit(username = remote$username, repo = remote$repo, - host = remote$host, ref = remote$ref, pat = remote$auth_token %||% github_pat(), use_curl = use_curl), + host = remote$host, ref = remote$ref, pat = remote$auth_token, use_curl = use_curl), # 422 errors most often occur when a branch or PR has been deleted, so we # ignore the error in this case