Hi,
I have had a github Action setup for quite a while that periodically scraped a website for data for me. Part of the action was installing some dependencies of the script. One of these dependencies is a package that I also maintain and I want to install the devtools version of it.
This has been running fine and automatically for about a year but recently stopped working.
The error code I get in the actions logs is
Rscript -e 'devtools::install_github("jimmyday12/fitzRoy")'
shell: /bin/bash -e {0}
env:
R_LIBS_USER: /Users/runner/work/_temp/Library
TZ: UTC
_R_CHECK_SYSTEM_CLOCK_: FALSE
NOT_CRAN: true
Using bundled GitHub PAT. Please add your own PAT to the env var `GITHUB_PAT`
Error: Error: Failed to install 'unknown package' from GitHub:
HTTP error 401.
Bad credentials
You can see the failed run here > updating workflow file · jimmyday12/fitzroy_data@a151a41 · GitHub
And the workflow file here.
A note on the workflow file - normally all dependencies would be installed in one step but I split them up while it was breaking so I could debug.
It seems like it is failing due to not being able to correctly access Github. Has something changed where I need to provide GITHUB_PAT as some kind of environment variable as part of an action?
I've tried installing on various local machines and it works fine so it's fairly unique to the Action.
Any help would be appreciated! I'm not exactly sure if this is a Github Actions issue, a devtools
issue or something with my own package so I'm a bit stumped at what to try.