Skip to content

Fix GitHub rate limit exceeded #283

@espenhgn

Description

@espenhgn

building the R container with sources from GitHub are hit and miss, failing with

#18 136.0 Installing package  MRCIEU/gwasglue  from GitHub with ref  c2d5660eed389e1a9b3e04406b88731d642243f1 
#18 136.4 Downloading GitHub repo MRCIEU/gwasglue@c2d5660eed389e1a9b3e04406b88731d642243f1
#18 138.6 Error occurred during package installation:
#18 138.6 <install_error: Failed to install 'gwasglue' from GitHub:
#18 138.6   HTTP error 403.
#18 138.6   API rate limit exceeded for 52.234.38.129. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
#18 138.6 
#18 138.6   Rate limit remaining: 0/60
#18 138.6   Rate limit reset at: 2024-10-17 10:35:18 UTC
#18 138.6 
#18 138.6   To increase your GitHub API rate limit
#18 138.6   - Use `usethis::create_github_token()` to create a Personal Access Token.
#18 138.6   - Use `gitcreds::gitcreds_set()` to add the token.>
#18 ERROR: process "/bin/sh -c github_pat=$(cat /run/secrets/github_pat)     Rscript github.R" did not complete successfully: exit code: 1
------
 > [stage-0 15/21] RUN --mount=type=secret,id=github_pat     github_pat=$(cat /run/secrets/github_pat)     Rscript github.R:
138.6 <install_error: Failed to install 'gwasglue' from GitHub:
138.6   HTTP error 403.
138.6   API rate limit exceeded for 52.234.38.129. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
138.6 
138.6   Rate limit remaining: 0/60
138.6   Rate limit reset at: 2024-10-17 10:35:18 UTC
138.6 
138.6   To increase your GitHub API rate limit
138.6   - Use `usethis::create_github_token()` to create a Personal Access Token.
138.6   - Use `gitcreds::gitcreds_set()` to add the token.>

So something is wrong with the way the COMORMENT_GITHUB_PAT key is parsed in the build action.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions