diff --git a/base_ottr/Dockerfile b/base_ottr/Dockerfile index 1e5d359..2af9802 100644 --- a/base_ottr/Dockerfile +++ b/base_ottr/Dockerfile @@ -8,7 +8,7 @@ COPY github_package_list.tsv . RUN --mount=type=secret,id=github_token \ Rscript install_github.R \ --packages github_package_list.tsv \ - --token $(cat /run/secrets/github_token) + --token /run/secrets/github_token WORKDIR /rocker-build/ diff --git a/base_ottr/install_github.R b/base_ottr/install_github.R index 0af8cf7..7b42deb 100644 --- a/base_ottr/install_github.R +++ b/base_ottr/install_github.R @@ -30,10 +30,10 @@ option_list <- list( # Parse options opt <- parse_args(OptionParser(option_list = option_list)) -message(as.character(opt$tokens)) - # Read in the token -token <- as.character(opt$tokens) +token <- readLines(as.character(opt$tokens)[1]) + +message(token) # Reset GITHUB PAT to be token # Sys.unsetenv("GITHUB_PAT")