Hi,
I have a shiny app that I am deploying to Posit Connect using actions/connect-publish at main · rstudio/actions · GitHub
The app has a dependency in a form of a package on a private github repository.
The deployment fails because:
Error in downloadWithRetries(url, destfile = destfile): Failed to download package from GitHub URL: 'https://api.github.com/repos/.......'
Download failed.
If you are trying to restore a package from a private Git repo, you must have credentials available in your environment, and Packrat must be configured to use an auth-capable download method. GITHUB_PAT environment variable not found. Packrat is not configured to use an auth-capable download method. Try setting the option packrat.authenticated.downloads.use.renv to TRUE, or installing the httr package.
Is there any way to send a GITHUB_PAT to the connect server for packrat to use and to configure packrat to use an auth-capable download method?