mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
add back authorization header for github api (#3529)
This commit is contained in:
@@ -10,6 +10,9 @@ export async function getGitHubRepoInfo(repo: Repo) {
|
|||||||
const response = await fetch(`https://api.github.com/repos/${repo.repo}`, {
|
const response = await fetch(`https://api.github.com/repos/${repo.repo}`, {
|
||||||
headers: {
|
headers: {
|
||||||
Accept: 'application/vnd.github.machine-man-preview+json',
|
Accept: 'application/vnd.github.machine-man-preview+json',
|
||||||
|
// If we don't use a personal access token,
|
||||||
|
// it will get rate limited very easily.
|
||||||
|
Authorization: `Bearer ${process.env.GITHUB_ACCESS_TOKEN}`
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user