Skip to content

Commit

Permalink
Accounting for GitHub Actions GITHUB_PAT system variable of ***
Browse files Browse the repository at this point in the history
  • Loading branch information
rmbielby committed Nov 12, 2024
1 parent 0d1e2f2 commit 1853b75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/diagnostic_test.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ check_proxy_settings <- function(
#' check_github_pat()
check_github_pat <- function(clean = FALSE,
verbose = FALSE) {
github_pat <- Sys.getenv("GITHUB_PAT")
github_pat <- Sys.getenv("GITHUB_PAT") |>
stringr::str_replace_all("\\*", "") # Accounting for GitHub Actions "***"
if (github_pat != "") {
message(
"FAIL: GITHUB_PAT is set to ",
Expand Down

0 comments on commit 1853b75

Please sign in to comment.