Skip to content

Add support for GitHub fine-grained personal access tokens #171

Description

@jvstein

GitHub just added support for new fine-grained personal access tokens, but the validate_gh_pat function does not validate them properly.

The new tokens appear to match "^github_pat_[A-Za-z0-9_]+$"

✖ The PAT discovered for 'https:/github.com' has the wrong structure.
Error in `validate_gh_pat()`:
! Invalid GitHub PAT format
ℹ A GitHub PAT must have one of two forms:
• 40 hexadecimal digits (older PATs)
• A 'ghp_' prefix followed by 36 to 251 more characters (newer PATs)
ℹ Read more at <https://gh.r-lib.org/articles/managing-personal-access-tokens.html>.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions