'wget a release file from Github from a private repo

wget --header 'Authorization: token PERSONAL_ACCESS_TOKEN_HERE' https://github.com/<USER>/<REPO>/releases/download/<TAG>/<FILENAME.zip>

This download method doesn't work recently in release download (always 404). Any solutions?



Solution 1:[1]

Make sure your token format is the more recent one: ghp_ for Personal Access Tokens, created with a scope repo.

And, for testing, activate 2FA on your GitHub account: it will be mandatory soon anyway.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VonC