diff --git a/DESCRIPTION b/DESCRIPTION index 27a1f6a..957bd5e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -18,6 +18,7 @@ Imports: fs, gert, ghql, + gitcreds, here, httr, jsonlite, diff --git a/R/utils.R b/R/utils.R index 0425fb5..9b7a742 100644 --- a/R/utils.R +++ b/R/utils.R @@ -21,7 +21,7 @@ symbol_crs <- function () { #' @noRd get_github_user <- function () { - gh_tok <- Sys.getenv ("GITHUB_TOKEN") + gh_tok <- gitcreds::gitcreds_get ()$password # Check corresponding user name: u <- "https://api.github.com/user"