Skip to content

Commit

Permalink
Will it let me read the file?
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Jul 15, 2024
1 parent 85cb12f commit 4f71660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion base_ottr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down
6 changes: 3 additions & 3 deletions base_ottr/install_github.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4f71660

Please sign in to comment.