-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposing GitHub PAT during Docker build using GitHub Actions #199
Comments
What you have looks to me like it should work, I don't know why it does not. I would suggest you ask in other venues, this doesn't seem to have anything to do with the custom R actions. e.g. either https://github.community/c/github-actions/41 or https://community.rstudio.com/ would be better avenues for this sort of question. |
@mattwarkentin Did you ever figure this issue out? |
Umm, I'm not sure what ever came of this issue, really. Did you try the proposed solution in the original post? |
Yes, it doesn't seem to work as Github actions isn't able to read the PAT for some reason. |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue |
Hi @jimhester,
I was wondering if you could suggest a best-practice for making sure
remotes::install_github()
has access to myGITHUB_PAT
. The extra layer of complexity is thatremotes::install_github()
is called during a Docker image build. I thought that just defining theGITHUB_PAT
as an environment variable within the Action would make it all work, but perhaps the PAT isn't inherited by the Docker build.Where the
Dockerfile
contains something like:The text was updated successfully, but these errors were encountered: