Anirban166 / Autocomment-atime-results

GitHub Action that automatically comments a plot and other atime-based results on PRs
https://github.com/marketplace/actions/autocomment-atime-results
0 stars 1 forks source link

Installing packages from GitHub requires PAT for the GitHub API's rate limits #6

Closed Anirban166 closed 8 months ago

Anirban166 commented 8 months ago

Something that I noted earlier, but since the limit for unauthenticated requests to the GitHub API is 60 per hour and remotes perform API requests for all packages/dependencies to be installed for a certain R package downloaded from GitHub, the default access token doesn't work.

When installing the development version of atime (i.e. one on GitHub via devtools::install_github()), it becomes necessary to supply one's own PAT:

Using bundled GitHub PAT. Please add your own PAT to the env var `GITHUB_PAT`
Error: Error: Failed to install 'atime' from GitHub:
  HTTP error 401.
  Bad credentials

  Rate limit remaining: 59/60
  Rate limit reset at: 2024-02-20 22:49:37 UTC

Execution halted
Error: Process completed with exit code 1.