maxlath / backup-github-repo

Backup all the issues and pull requests of a Github repo, including the comments, events, and labels, as JSON and as HTML
40 stars 7 forks source link

Token regxp doesn't appear to be correct #7

Closed dngray closed 3 years ago

dngray commented 3 years ago
dngray ~/privacytools.io $ ~/backup-github-repo/bin/backup-github-repo.sh
[backup-github-repo] config not found or empty
We recommand setting a configuration file to store a Github API token.

Using a token increases the number of API requests we can make, see https://developer.github.com/v3/#rate-limiting
Get a new token at https://github.com/settings/tokens
Public repo: no special permission required.
Private repo: require authorization: [repo: Full control of private repositories]

Create a configuration file? [Y/n]
: y
Where should the config file be stored?
1 - /home/dngray/privacytools.io/.backup-github-repo (local, default)
2 - /home/dngray/.backup-github-repo (global)
: 1
Enter token: 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
invalid token: expected the token to match the pattern /^[0-9a-f]{40}$/
Enter token:

My token is in the format: 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 (currently revoked token)

maxlath commented 3 years ago

Indeed! That seems to be a new format: fixed in 9269a6e and published in v1.1.1