Skip to content

Commit

Permalink
Update environment variable name
Browse files Browse the repository at this point in the history
GITHUB_TOKEN -> API_AUTH_TOKEN_GITHUB

The IT asked for a more descriptive name. Also, apparently you variables
cannot start with the prefix 'GITHUB'.
  • Loading branch information
nvonpentz committed Oct 16, 2023
1 parent 904ebca commit 9590fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/util.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ const fetchGitHubFileContent = async (repoOwner, repoName, branch, filePath, git
};

const fetchGitHubRepoTopLevelFiles = async (repoOwner, repoName, branch) => {
const githubToken = process.env.GITHUB_TOKEN;
const githubToken = process.env.API_AUTH_TOKEN_GITHUB;
const githubHeaders = {
"Accept": "application/vnd.github.v3+json",
"Authorization": `token ${githubToken}`
Expand Down

0 comments on commit 9590fb8

Please sign in to comment.