-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
@ScientificProgrammer I can help with this if needed! The tests are failing (my fault, I should have foreseen this) because they use the default GitHub Personal Access Token for the actions as opposed to one with gist scope.
Easy workaround
What's needed
- creating a GitHub PAT with the correct scopes for this package (including gist scope). Hopefully you can create a fine-grained one https://github.blog/2022-10-18-introducing-fine-grained-personal-access-tokens-for-github/
- storing it in https://github.com/ropensci/gistr/settings/secrets/actions as
MY_GITHUB_PAT
(existing PATs there have probably expired now). Once it's there no one can view it, we admins can only renew it, and everyone with write access to this repository can use it in the GitHub Actions workflow. - in the GitHub Actions workflow referring to it, replacing
gistr/.github/workflows/R-CMD-check.yaml
Line 28 in 61f2003
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
with
GITHUB_PAT: ${{ secrets.MY_GITHUB_PAT }}
Better solution
Making the tests independent from a personal access token using tools from https://books.ropensci.org/http-testing/ -- we could collaborate on this.
This is a better solution because it'd mean tests also pass when launched from an external fork in a pull request.
Metadata
Metadata
Assignees
Labels
No labels