wget --header 'Authorization: token PERSONAL_ACCESS_TOKEN_HERE' https://github.com/<USER>/<REPO>/releases/download/<TAG>/<FILENAME.zip>
此下载方法最近在发布下载中不起作用(总是 404)。有什么解决办法吗?
回答1
确保您的 https://github.blog/changelog/2021-03-31-authentication-token-format-updates-are-generally-available/ 是较新的:ghp_
用于个人访问令牌,使用 https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps 创建。
并且,为了进行测试,请在您的 GitHub 帐户上激活 https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication:这将是https://thenextweb.com/news/how-to-enable-2fa-github-account。