mirror of
https://github.com/restic/restic.git
synced 2026-02-17 06:23:56 +00:00
Allow for a personal token to be specified for self-updates (#5568)
* Allow for a personal token to be specified for self-updates This change will allow for setting the $GITHUB_ACCESS_TOKEN environment variable with a Github personal access token, allowing e.g. for higher rate limits * Refactor github request and add test --------- Co-authored-by: Paulo Saraiva <pauloman@cern.ch>
This commit is contained in:
@@ -25,7 +25,12 @@ you can download and run without having to do additional installation work.
|
||||
|
||||
Please see the :ref:`official_binaries` section below for various downloads.
|
||||
Official binaries can be updated in place by using the ``restic self-update``
|
||||
command.
|
||||
command.
|
||||
|
||||
The environment variable ``$GITHUB_ACCESS_TOKEN`` can be set to use a personal
|
||||
access token when updating. This increases the rate limit through authenticated GitHub API
|
||||
requests, and prevents update failures when many
|
||||
unauthenticated requests have already been made from the same IP.
|
||||
|
||||
Alpine Linux
|
||||
============
|
||||
|
||||
Reference in New Issue
Block a user