Skip to content

Commit 339a7b6

Browse files
committed
fix: restore original environment variable name for GitHub token
1 parent cfd6136 commit 339a7b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github/common/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export async function githubRequest(
3434
...options.headers,
3535
};
3636

37-
if (process.env.GITHUB_TOKEN) {
38-
headers["Authorization"] = `Bearer ${process.env.GITHUB_TOKEN}`;
37+
if (process.env.GITHUB_PERSONAL_ACCESS_TOKEN) {
38+
headers["Authorization"] = `Bearer ${process.env.GITHUB_PERSONAL_ACCESS_TOKEN}`;
3939
}
4040

4141
const response = await fetch(url, {

0 commit comments

Comments
 (0)