Skip to content
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

Add section about resetting GitHub PAT #26

Open
chendaniely opened this issue Oct 10, 2024 · 0 comments
Open

Add section about resetting GitHub PAT #26

chendaniely opened this issue Oct 10, 2024 · 0 comments

Comments

@chendaniely
Copy link
Member

example of an error you can get:

> devtools::install_github("UBC-MDS/taxyvr")
Using github PAT from envvar GITHUB_PAT. Use `gitcreds::gitcreds_set()` and unset GITHUB_PAT in .Renviron (or elsewhere) if you want to use the more secure git credential store instead.
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 401.
  Bad credentials

  Rate limit remaining: 57/60
  Rate limit reset at: 2024-10-08 20:13:38 UTC

In R you can help remove PATs:

install.packages("gitcreds")

Then run gitcreds::gitcreds_get() to look for the PAT

Also try:

Sys.getenv("GITHUB_TOKEN")
Sys.getenv("GITHUB_PAT")

To delete the credential, try this:

gitcreds::gitcreds_delete()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant