fix: restore original environment variable name for GitHub token
This commit is contained in:
parent
cfd613693c
commit
339a7b6708
1 changed files with 2 additions and 2 deletions
|
|
@ -34,8 +34,8 @@ export async function githubRequest(
|
|||
...options.headers,
|
||||
};
|
||||
|
||||
if (process.env.GITHUB_TOKEN) {
|
||||
headers["Authorization"] = `Bearer ${process.env.GITHUB_TOKEN}`;
|
||||
if (process.env.GITHUB_PERSONAL_ACCESS_TOKEN) {
|
||||
headers["Authorization"] = `Bearer ${process.env.GITHUB_PERSONAL_ACCESS_TOKEN}`;
|
||||
}
|
||||
|
||||
const response = await fetch(url, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue