Revert "Set HOMEBREW_GITHUB_API_TOKEN from GITHUB_TOKEN."

This commit is contained in:
Mike McQuaid 2020-04-09 09:29:50 +01:00 committed by GitHub
parent 3146258b60
commit 147294b1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 13 deletions

View File

@ -131,7 +131,6 @@ module Homebrew
"GitHub will allow you a greater number of API requests. For more information, see: " \
"<https://developer.github.com/v3/#rate-limiting>\n\n *Note:* Homebrew doesn't " \
"require permissions for any of the scopes.",
default_text: "`$GITHUB_TOKEN`.",
},
HOMEBREW_GITHUB_API_USERNAME: {
description: "GitHub username for authentication with the GitHub API, used by Homebrew for features " \

View File

@ -79,12 +79,6 @@ then
export HOMEBREW_EDITOR="$VISUAL"
fi
# Use GITHUB_TOKEN if HOMEBREW_GITHUB_API_TOKEN is unset.
if [[ -z "$HOMEBREW_GITHUB_API_TOKEN" && -n "$GITHUB_TOKEN" ]]
then
export HOMEBREW_GITHUB_API_TOKEN="$GITHUB_TOKEN"
fi
# Set CI variable for GitHub Actions, Azure Pipelines, Jenkins
# (Set by default on Circle and Travis CI)
if [[ -n "$GITHUB_ACTIONS" || -n "$TF_BUILD" || -n "$JENKINS_HOME" ]]

View File

@ -1282,8 +1282,6 @@ Note that environment variables must have a value set to be detected. For exampl
*Note:* Homebrew doesn't require permissions for any of the scopes.
*Default:* `$GITHUB_TOKEN`.
* `HOMEBREW_GITHUB_API_USERNAME`:
GitHub username for authentication with the GitHub API, used by Homebrew for features such as `brew search`. We strongly recommend using `HOMEBREW_GITHUB_API_TOKEN` instead.

View File

@ -1637,9 +1637,6 @@ A personal access token for the GitHub API, used by Homebrew for features such a
.IP
\fINote:\fR Homebrew doesn\'t require permissions for any of the scopes\.
.
.IP
\fIDefault:\fR \fB$GITHUB_TOKEN\fR\.
.
.TP
\fBHOMEBREW_GITHUB_API_USERNAME\fR
GitHub username for authentication with the GitHub API, used by Homebrew for features such as \fBbrew search\fR\. We strongly recommend using \fBHOMEBREW_GITHUB_API_TOKEN\fR instead\.